read from file until a line begins with a certain word

J. Landman Gay jacque at hyperactivesw.com
Sun Sep 17 20:31:47 EDT 2017


On 9/17/17 7:16 PM, J. Landman Gay via use-livecode wrote:
> You're right of course, I had a thinko.

It should have been this, btw:

on parseFile
   put "/path/to/file" into tFile
   put cr & "mstart" into tDelim
   open file tFile for read
   repeat
     read from file tFile until tDelim
     if it = "" then exit repeat
     -- process the text here
   end repeat
   close file tFile
end parseFile

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list