Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and Replace in huge text file
Message
De
27/09/2005 14:42:35
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01053411
Message ID:
01053593
Vues:
26
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform