This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

How to read a column as a list?

2 posts · 948 views

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?

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.