Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
 
 
To
27/09/2005 12:12:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01053521
Views:
31
After you do STRTRAN(FILETOSTR(), "< Something >", "< Someother >")) you can end up with "< Something >" presented in the result because of "< Someother >" combining with other parts of the text. When you do processing with FREAD() buffer by buffer, you'll have to keep some part of the previuous buffer to account for the possible split. It could cause replacement of the match created by previous STRTRAN.
I'm not sure if this explanation is clearer than prevuous one. :)
Maybe it would be simpler if you post modified code that can handle split so I can see if it has the problem I try describe above.


>I don't understand.
>Cetin
>
>>In general case it's not simple because the STRTRAN() could create match for the next one.
>>
>>>You're right. Not hard to handle luckily.
>>>Cetin
>>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform