Re: Reading a file into a "sequence"

new topic     » goto parent     » topic index » view thread      » older message » newer message

John F Dutcher wrote:
> 
> Something more is needed to allow referring to each quoted string in the
> file as a member of a sequence....again as in line[1] or line[2] ??

See if you can find kat's "strtok" library. Then you could do this:

line = gets(fn)
if not atom(line) then
   s = parse(",",line) -- from memory... might be other way around :)
...

Now s[1] = "%HDR", s[2] = "EXTRACT", etc...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu