Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low-level files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Low-level files
Divers
Thread ID:
00558565
Message ID:
00558565
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform