Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Low-level files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Low-level files
Miscellaneous
Thread ID:
00558565
Message ID:
00558565
Views:
49
I'm trying to create a "log" file of occurences within a system. I'm using FCREATE/FOPEN/FPUTS and can't get a new record created each time it is written. Is there a parameter that allows additional records to be added to a text file opened with FOPEN? The code is as follows:

IF FILE('faxbol.log')
lnActionFile = FOPEN('faxbol.log',1
ELSE
lnActionFile = FCREATE('faxbol.log')
ENDIF
IF lnActionFile < 0
WAIT 'Cannot open or create output action log file' WINDOW NOWAIT
ELSE
=FPUTS(lnActionFile, DTOS(DATE()) + '-' + TIME() + tcActionDesc)
ENDIF
=FCLOSE(lnActionFile)

Thanks in advance,

Harry
Next
Reply
Map
View

Click here to load this message in the networking platform