Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete and insert lines from a file
Message
 
 
À
14/12/2009 10:48:33
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01438943
Message ID:
01438945
Vues:
58
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform