Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fputs()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00365294
Message ID:
00365299
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Hello,
> I used the fopen("dummy",2) and fputs() to append data to a text file. It overwrote the exist data instead of append to the text file. What did I do wrong ? thanks
>nFile=fopen("dummy",2)
>if nfile > 0
> = fputs(nfile,"test")
>endif
>fclose(nfile)
>sherry

Sherry,

You have to position record pointer to the end of the file

=FSEEK(nfile, 0, 2)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform