Information générale
Catégorie:
Codage, syntaxe et commandes
My FOPEN() command already is opening in read-write mode, it just isn't appending. Thanks for the tip on FERROR() though, I didn't know about that function.
>Joe,
>This should work. Make sure that you FOPEN() the file in read-write mode and that you have a valid handle. Use FERROR() to trap any errors.
>
>HTH
>>I'm using low level file fuctions to log certain miscellaneous messages to a text file.
>>
>>If the file already exists, I open it using FOPEN, then move the pointer to the end of the file using Fseek(lnFileHandle, 0, 2) and then tried using both FPUTS and FWRITE to append to the file.
>>
>>This didn't work and I'm not sure why. Is it possible to append to a text file using the low level functions?
>>
>>I am currently running in the VFP 5.0 environment and am not able to use FileToStr and StrToFile.
>>
>>TIA!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement