I use more and more qt as a regular IDE. I write for example this piece of code:
std::ofstream out("myfile.txt",std::ios_base::out); out<<"HelloWorld<<"; out.close(); The file does not create. If you put in the project directory for example myfile2.txt and write std::ifstream file("myfile2.txt",std::ios_base::in); he will not open it. The project was created as: A project without using Qt -> A simple project in C ++. Linux OS

"/tmp/myfile.txt", there it is impossible to make a mistake. - VladD/tmp/a/progprogram from the/tmp/a/prog, then the current directory is/tmp. This is not necessarily the directory in which the program resides, and certainly not necessarily the directory in which the source codes lie. - VladD