Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending text to low level file
Message
From
01/07/1999 09:45:05
 
 
To
01/07/1999 09:24:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236407
Message ID:
00236430
Views:
11
>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!

Even easier than all the suggestions given is to use VFP's text merge capabilities.

SET TEXTMERGE TO MyFile.TXT ADDITIVE
SET TEXTMERGE ON
\This is a new line of text
\\ This line is appended to the previous
\<> will write the contents of MyField
\<>
SET TEXTMERGE OFF
SET TEXTMERGE TO

Textmerge is EXTREMELY fast and efficient.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform