Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending text to low level file
Message
De
01/07/1999 09:45:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00236407
Message ID:
00236430
Vues:
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!

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform