I am trying to upload a file using fstream. The code is as follows:
file.open("../levels/level0.lvl"); if (file.is_open()) { while (!file.eof()) { std::getline(file, Str); list = ReadLine(Str, list); } }
But he does not load anything. Yes, only if the path is absolute. How can I make the path relative?
The "level" folders are located in the debug folder. same folder as exe.
source share