>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