Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fcreate/Fopen/Fputs
Message
De
06/06/2002 11:28:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00665479
Message ID:
00665486
Vues:
19
>Please verify this.
>
>I create a file with Fcreate in Read/Write mode.
>Then the file is closed.
>
>It is opened a couple of times later in my program using
>Fopen in Read/Write mode.
>Now each time my program issues a FPUTs statement, the
>text in the file will be overwritten. Hence I need to use a
>FGETS to go until the EOF and then issue my FPUTS
>command.(consecutive fputs are trying to append text
>to the file)
>
>Thank you.
>
>Ria

Use fseek() instead - that would be faster.

In VFP 6, you can also omit LLFF altogether, in many cases, and write to a file with StrToFile(), or read with FileToStr().

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform