Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
From
28/09/2005 14:47:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01054125
Views:
46
>>>I forgot to mention it runs as fast as 68 find & Replace through 130 MB file in just 50 minutes, that is very good.
>>minutes or seconds? If it's running almost an hour, that's not acceptable.
>
>The process takes round 40 second / cycle, I have 68 cyles to run ( 68 different find & Replace ), so I think it is good.

In that case, why not pass it a 2 column array with all 68 find and replace strings. Then, rewrite your code something like this:
FOR nCtr = 1 TO 68
   lcBufferOut = STRTRAN(lcBuffer,aStr[nCtr,1],aStr[nCtr,2]) 
ENDFOR
I'll bet that would cut your time down to less than 2 minutes!

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform