Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending text to low level file
Message
From
01/07/1999 16:34:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236407
Message ID:
00236696
Views:
12
>>Hello,
>>I want to create a error log file, but I don't know how to write to a file without loosing the existing text.
>>Is there a easy way to write "additive" to file?
>>Thanks for your help!
>Use a table!!!
>
>Wayne

FWIW: We use a table with memo fields for our error log, and one record for each logged event, with fields for date, time, etc. Makes it easy for searching for stuff in VFP, but a pain in the butt for anyone who doesn't have FP/VFP available to them. If you really need the log to be a text file, we have recently been using STRTOFILE()(as suggested by another) with its additive flag, and its fast and easy. I haven't checked, but I suspect it has the 'usual' 2 GB limit, so the earlier suggestion on checking file size is probably a good idea...

HTH

Rob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform