Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing open file when application ended using task mana
Message
De
30/12/2007 02:00:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/12/2007 23:11:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01278411
Message ID:
01278437
Vues:
15
>Sergey, thanks for replying so quickly. How would performance compare between using STRTOFILE versus creating the file using fcreate, closing the file, then reopening in unbuffered write only mode and using fputs to write the data?

I do all my logging this way (with the Additive parameter, of course, so whatever I write gets appended to the end of file). Just when I create the logger object, I append the existing log to an archive file, and create a new log file. So it never grows too big (to cause slowdowns) and I still have the archive of old logs if need be (which does happen once in a few months). Speed? Who cares, the things I was logging with this took much longer than the logging itself.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform