Optimize This!

Todd Geist tg.lists at geistinteractive.com
Mon May 1 05:35:09 EDT 2006


On May 1, 2006, at 1:20 AM, Jan Schenkel wrote:

> Hi Todd,
>
> Have you looked at the 'seek' command? It allows you
> to go straight to a certain position in the file, and
> then you can use 'read' to grab the chunk you're after
> - no repeat needed.
> --
> open file tFilePath
> seek to 30000 in file tFilePath
> read from file tFilePath for 500 chars
> put it into tData
> close file tFilePath
> --
>

Hi Jan

I did look at the "seek" command, but I don't get how it can be  
applied here. I don't know the position of the string in the file so  
how could I "seek" to it.
I may be misunderstanding what seek does?

Todd

-- 

Todd Geist
______________________________________
g e i s t   i n t e r a c t i v e




More information about the use-livecode mailing list