What is the file format?
I think your way is OK, another way would be to use low-level file operations. If you provide more info about the problem, we would be able to give a better response.
>Hello Everybody
>
>Before i can work with some xsl-files from our customer (xmltocursor),
>i have to delete a line and insert 2 lines.
>(delete line 2, insert one line after line 4 and one line at end of file.
>
>What is the best way to do this with foxpro ??
>
>Until now i do some stupid workarounds with create cursor(xyz c(254)), append from file type sdf.
>goto n
>copy rest to file new type sdf
>filetostr(newfile,newstring)
>
>text to newfile textmerge
>blah,blah
>**newstring**
>blah,blah
>enttext
>
>...
>...
>
>I hope there is a better way to do this.
>Any help welcomed
>Best regards
>Albert
If it's not broken, fix it until it is.
My Blog