Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending text to low level file
Message
De
01/07/1999 16:34:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00236407
Message ID:
00236696
Vues:
13
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform