Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
From
27/09/2005 14:42:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01053593
Views:
22
>>
>>OK, I guess I'm a little dense today. How does the file size affect what I suggested?
>
>The VFP string size limit is under 16MB. You can read more than that into a string with FILETOSTR() but most string functions will fail on the strings that exceeds the limit.

Sergey,

I just created a 150MB text file from an old program file. Just select all, copy and paste several times. Then, I did the FILETOSTR() and the OCCURS() functions on it getting back a count of 20480 occurrences of my initials in about 15 seconds. ?SUBSTR(cVar,AT('JWW',cVar,20480),3) returned 'JWW'. So, it looks to me like the string functions I was using in my suggested code are functioning OK. Or, am I missing something here?

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform