Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and Replace in huge text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01053411
Message ID:
01053697
Vues:
11
>Hi,
>
>I have a huge text file, could exceed 130 MB and I would like to search for specific string in this file and replae it with other string.
>EX. find "AD00" and replace it with "BR77".
>
>any ideas how can I do that in VFP

If you can load the file with FILETOSTR(), you could then use the Regular Expression Parser (if not (STRTRAN()), to make the changes.

See the VFUG newsletter (www.vfug.org), January 2003 (I think) for the last in the series of articles on the Windows Script Host that I wrote with the late (great) Ed Rauh.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform