Re: Reading a file into a "sequence"

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

On 17 Nov 2004, at 19:28, cklester wrote:

> 
> 
> posted by: cklester <cklester at yahoo.com>
> 
> 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 :)

It's s = parse(line,",") (or a few variations on that). Then if you build
another
sequence of the parsed lines, you can use the other strtok functions to sort 
it, retrieve, etc.. The readme is at 

http://www.tiggrbox.info/program/strtok-v2-1.html

There's probably errors in it, since i simply overwrote the existing file when 
someone reported a "bug". The one online is an old backup. BNut anyhow, 
better get it all now, because i won't pay for hosting from jail.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu