File Management :: Win32
How do you read, write, and append data to files using Win32 CreateFile? In core C++, we can use write(). CreateFile returns a handle to a file. I thought about mapping the file and then casting the void * that MapViewOfFile() returns to BYTE *, but that seems overkill since all the process does is write to a file.
look up ReadFile() and WriteFile() at msdn. (i think those are the function names). They're much simpler to use than what you had in mind (you're right it was overkill :))