Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing open file when application ended using task mana
Message
From
30/12/2007 02:00:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/12/2007 23:11:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Oracle
Miscellaneous
Thread ID:
01278411
Message ID:
01278437
Views:
14
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform