Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01053697
Views:
8
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform