Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Insert a line into text file?
Message
From
09/01/2003 06:59:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739725
Message ID:
00739726
Views:
7
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>Could someone please tell me the best was to add a blank line to the start of an existing text file. If I open it for Read/Write then do a fputs I seem to loose a character.
>
>Thanks in anticipation
>Caroline

Without too much investigation, if possible, you could try:
STRTOFILE(CHR(13) + FILETOSTR(cFile), cFile)
Or something along those lines.

Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform