>MetaGurus,
>I want to read a certain specified range of line numbers from a huge text
>file.  What's the best way to do this?  What I'd like is something like:
>
>open file thisFile
>read from file thisFile from line 189 to line 300
>put it into myVar
>close file thisFile
>
>...except that this obviously won't work.  You can't specify a beginning
>line and an ending line to read from a file, can you?
>
>Normally you'd think to just load the whole file into a variable and then
>work with it, but this file is huge and needs to be accessed numerous times,
>and different lines will be read each time.  I know I can use character
>numbers but would prefer not to.  Can anyone help?
>
>Richard MacLemale
>www.coolclassroom.com
Look up "read" in Metatalk reference. It's all there.

Regrds, Andu



This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to