I was wondering whether there is a way to do file input/output with Win32/C++? For example, in a console C++ program, I can fo this:
ofstream write;
write.open ("file.txt");
myfile << "Hello";
myfile.close();
However, when I try to use the above functions in a Win32 program, it will not compile. How do I open and write to/read from a text file in Win32?
Thanks.