Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and Replace in huge text file
Message
 
 
À
27/09/2005 12:12:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01053411
Message ID:
01053521
Vues:
32
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform