Page 1 of 1

How to read a column as a list?

Posted: Sat May 29, 2010 2:10 am
by kavardak
Pls help newbie. I have a file with five columns of numbers. How can I read third column as a list?

Re: How to read a column as a list?

Posted: Sun May 30, 2010 5:35 pm
by Jasper
Sounds a bit like homework. One simple and crude way is to use (read-line stream nil :eof) until :eof, and then for each wrap the resulting string in parenthesis characters, and then the third of read-from-string is the one you want of each of those. The bolded are functions.other too) You can use lispdoc, or just this long list to find functions. If you can't figure out, show us what you're trying. PCL is a good book too.