General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only