Hello, all!
I've opened a file:
How can I append something to it. I mean WriteFile will overwrite everything in the file and I need to append some text at the end of the file.
Thanx
I've opened a file:
Code:
CString path="myfile.txt"
hFile = CreateFile ((LPCTSTR) path,GENERIC_WRITE | GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
How can I append something to it. I mean WriteFile will overwrite everything in the file and I need to append some text at the end of the file.
Thanx