Why can't append text to the end of file?
asuralm:
Hi:
I have the following code which is not working:
Basically, I want to append those information to the end of the file. However, I only get the last one. All the previous information were erased. And no-error was reported.
Is there any problem using the FileSeek(file, 0, SEEK_END) here???
Thanks
Did you read the documentation for FileOpen?
If there is a need to add data to an existing file, it must be opened using combination of FILE_READ | FILE_WRITE.
Hi:
I have the following code which is not working:
Basically, I want to append those information to the end of the file. However, I only get the last one. All the previous information were erased. And no-error was reported.
Is there any problem using the FileSeek(file, 0, SEEK_END) here???
Thanks