problem in the reading of my file .text

This is a discussion on problem in the reading of my file .text within the C++ Programming forums, part of the General Programming Boards category; Hi,
I have problem in the reading of my file .text
i open it like that
Code:
FILE *fp;
fp=fopen("my_file","r");
...

This is in the wrong forum - you are using C
You probably have your filename / path wrong - my_file i imagine is my_file.txt or something like that - you need to specify it exactly - and it will only work like that (without a path) If you are opening it in the same folder as your binary - you should always define the whole file path + name anyway - use args / input to retrieve it or hardocde it exactly as it should be