General information
Category:
Coding, syntax & commands
I just changed my FSEEK() to go to EOF before appending and it worked...I did have it going to BOF and it wasn't working...guess you can't do it that way?!?!
Thanks for all your help!
>Joe,
>This should work. Make sure that you FOPEN() the file in read-write mode and that you have a valid handle. Use FERROR() to trap any errors.
>
>HTH
>>I'm using low level file fuctions to log certain miscellaneous messages to a text file.
>>
>>If the file already exists, I open it using FOPEN, then move the pointer to the end of the file using Fseek(lnFileHandle, 0, 2) and then tried using both FPUTS and FWRITE to append to the file.
>>
>>This didn't work and I'm not sure why. Is it possible to append to a text file using the low level functions?
>>
>>I am currently running in the VFP 5.0 environment and am not able to use FileToStr and StrToFile.
>>
>>TIA!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only