>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