Simple C++ blank project in Qt IDE. I want to open file. It works only with full path.
Works:
fstream file;
file.open("C:\\Users\\Me\\Documents\\Cat\\in.txt", ios::in);
Doesn't work:
fstream file;
file.open("in.txt", ios::in);
The file is in the same directory as the whole project.