Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on FileToStr() and ChrTran() functions
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00505649
Message ID:
00505953
Views:
26
>>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)  && returned 3,271,930 [bytes]
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform