I'm trying to do disk reads and writes when programming in C++ in the win32 console mode.
I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get an access violation error ("program encountered an error and needs to close" thing).
So, now that I have created the file on disk, how do I read or write to it in console mode?