Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Insert a line into text file?
Message
 
To
09/01/2003 06:59:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739725
Message ID:
00739729
Views:
5
>>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

Thanks Kev that worked perfectly.
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform