FILE IO RESOURCE

Hey guys im looking to add a .txt file as a resource and access it this is what i have so have.


in resource file,

MYFILE TXT "loadfile.txt"



in main.cpp

ifstream qFile("MYFILE");

is this correct? thanks
Last edited on
It is not correct. It does not compile.
ifstream qFile("MYFILE");

Should be :
ifstream qFile("loadfile.txt");
Topic archived. No new replies allowed.