Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Delete and insert lines from a file
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement