How to read a column as a list?

Discussion of Common Lisp
Post Reply
kavardak
Posts: 1
Joined: Sat May 29, 2010 2:03 am

How to read a column as a list?

Post by kavardak » Sat May 29, 2010 2:10 am

Pls help newbie. I have a file with five columns of numbers. How can I read third column as a list?

Jasper
Posts: 209
Joined: Fri Oct 10, 2008 8:22 am
Location: Eindhoven, The Netherlands
Contact:

Re: How to read a column as a list?

Post by Jasper » Sun May 30, 2010 5:35 pm

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.

Post Reply