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.

Thanks,
Kuphryn

12-13-2002

Waldo2k2

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 :))