Searching through binary/text files efficiently

Mark Smith mark at maseurope.net
Tue Sep 11 13:08:31 EDT 2007


I'd just load the whole file and use "is in"...

put URL ("file:" & tFile) into tData
return someString is in tData

In my experience, there isn't much to be gained by loading the file  
in chunks (open file...read from file etc).
It usually seems to be most efficient to hand as much work off to the  
engine as possible.

Best,

Mark



On 11 Sep 2007, at 15:12, Roger.E.Eller at sealedair.com wrote:

> I have several thousand files which contain a mixture of text and  
> binary
> data. I need to "look inside" all of them and determine which ones  
> contain
> a specific text string such as "baj_sese_ 20070105.rk". What is the  
> most
> efficient rev method to do this? These files are of various sizes  
> ranging
> from 700kb to 10mb.
>
> Roger Eller <roger.e.eller at sealedair.com>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list