I would like to know how to save a variable in a separate file so that the information can be retrieved when the program is shut down... Please give me a hand if you can...
Printable View
I would like to know how to save a variable in a separate file so that the information can be retrieved when the program is shut down... Please give me a hand if you can...
check out fstream (located in fstream.h). I'm sorry, but I haven't learned the exact syntax. I'm still using file pointers (good ol' C) :)