FILE IO RESOURCE

Oct 4, 2016 at 4:05am
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 Oct 4, 2016 at 4:06am
Oct 4, 2016 at 4:06am
It is not correct. It does not compile.
Oct 4, 2016 at 4:09am
ifstream qFile("MYFILE");

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