Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manipulating 'txt' files
Message
 
 
À
23/02/2008 21:03:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01295783
Message ID:
01295785
Vues:
14
>Hi.
>I need to open a '.txt' file,
>search information on it, read
>that information and then write
>it back in a 'new txt' file.
>Which is the best way to do this?
>Thanks in advance!

It depends on what is the structure of the file and how big it is. If it's not very big, you can first get the whole file in the string with

lcStr = filetostr('myFile.txt')

Then you may look for your string using AT function and then write back with strtofile() function.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform