1

Topic: fopen demands full path instructions to a file?

Why if the file name is specified simply, for example "input.txt" lying in one directory with exe - fopen it does not see.
And if a full path from a root of a disk of a C - that all apprx.
It is a C feature ++?

FILE *f = fopen (filename, "r");

2

Re: fopen demands full path instructions to a file?

Eolt;
It is OS feature. The current way (where it is searched input.txt) is not obliged to coincide with a way to exe

3

Re: fopen demands full path instructions to a file?

It is necessary to display a way. So it is possible to check up that goes not so.
Here  http://en.cppreference.com/w/cpp/experi … rrent_path