Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to replace char. or string in a text file ?
Message
 
 
To
18/10/2011 22:32:45
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01526828
Message ID:
01526830
Views:
58
>Hi,
>I want to use VFP to write a function to open a text file and search
>a word or a char. and then replace it to another char.
>How to code it ?
>or some existing function suggested.
>
>Please advise.
>
>Thanks.
>Derek

If the file is not too big, you can use filetostr, strtran, strtofile functions.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform