
Extremely Active Member
     
Group: Moderators
Posts: 873
Member No.: 5019
Joined: 13-May 07

|
@Akyprian
My question is solved by Tedd (in masm32 board)
For overlapped-IO, you provide an OVERLAPPED struct.. within that struct, the 'offset' indicates where the data should be read-from or written-to.
So, in the case of writing, if you set it to the current file-size, the data will be written to the end of the file (appended.) I'm guessing setting offset to -1 will also cause it to append (so you shouldn't need to get filesize), but you'll have to test to see if it actually does.
But, since you're the one saving the file, I presume you'll already know how much you've written, so you'll already know the offset without getting the filesize each time.
greets, ragdog
|