this problem has plagued me for along time but ive really never needed to figure it out until now.

i can write to a file easy enough but my problem is that every time i write to the file i erase the previous contents. what method do i need to use to retain the previous contents when appending additional content to the end of the file?
Posted on 2002-01-11 01:01:47 by smurf
set the filepointer to the end of the file, when you open a file with CreateFile it resets to 0
Posted on 2002-01-11 01:06:15 by Hiroshimator
and in case you wondered, you do that with SetFilePointer :grin:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_8iwi.asp
Posted on 2002-01-11 01:12:23 by Hiroshimator
thank you that was just what i was looking for.:)
Posted on 2002-01-11 11:12:42 by smurf