Hello i am trying to add a .txt file to resources this is what i have so far.
in resource file,
MYFILE TXT "loadfile.txt"
in main.cpp
ifstream qFile("MYFILE");
is this correct? thanks
Hello i am trying to add a .txt file to resources this is what i have so far.
in resource file,
MYFILE TXT "loadfile.txt"
in main.cpp
ifstream qFile("MYFILE");
is this correct? thanks
> ifstream qFile("MYFILE");
This line needs to be something which gets a resource named MYFILE.
At the moment, you're literally looking for a file called MYFILE.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.