Pete,
create cursor temp (cLine c(80))
append from TheFile.txt type sdf
insert your text as a record
copy to TheFile.txt type sdf
You may need a scan loop and a second cursor to actually insert the row you want. But that code works very fast.
You can also use a memo:
create cursor temp (mText m)
append blank
append memo mText from TheFile.txt
modify the memo
copy memo mText to TheFile.txt
>does anyone know how to insert text at a specified point using Fopen, Fread etc?
>
>e.g.
>line1
>line2
>line3
>line4
>
>I want to insert newline line in between line2 and line3
>
>end result
>line1
>line2
>newline
>line3
>line4