>>Mark,
>>
>>This is not true for big files. Check the FAQ section, I made a reference to the thread, where this problem was discussed in details.
>
>I just downloaded War and Peace which is a 3.2MB text file. I did the following and got no errors and the file remained intact and did it all in 0.6
Where did you download it?
seconds:
>lcString = filetostr(x)
>lcString = strtran(lcString, 'was', 'Z~Z')
>? strtofile(lcString, x)
>Resistance is futile. Feel the power of VFP string handling capabilities. I do cede the point that this is CASE SENSITIVE so other alternatives have to be used where string functions have to be performed regardless of case.
I use StrtranC function by Steven Black for insensitive strtran.
If it's not broken, fix it until it is.
My Blog