Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low-level file functions
Message
From
14/03/2002 14:52:29
 
 
To
14/03/2002 14:23:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00632938
Message ID:
00632976
Views:
11
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
Map
View

Click here to load this message in the networking platform