Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending text to a low-level text file
Message
De
13/12/2000 11:08:58
 
 
À
13/12/2000 11:01:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00452846
Message ID:
00452863
Vues:
24
Hi Dave!

>>Is there a way I can append text to an existing low-level text file (one that I've created with FCREATE and/or opened with FOPEN) without overwriting the text in it?

Not to mention STRTOFILE() with the Append parm set .T.


>You have the concept of a "file pointer" in the low-level functions, which points to the position in the file that the next FWRITE will overwrite. Using FREAD, you can move the file pointer to the position you want, in combination with FEOF to test if you are at the end of the file.
>
>Play with those a bit and you should find what you want.
>
>For example, FREAD(nFileHandle, 8) would read the first 8 characters, so an FWRITE issued after that would start writing at the 9th character.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform