Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fputs()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00365294
Message ID:
00365299
Views:
15
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform