Search found 3 matches
- Sat Feb 05, 2011 5:32 pm
- Forum: Common Lisp
- Topic: Reading standard input
- Replies: 5
- Views: 9781
Re: Reading standard input
I have to second that the REPL is invaluable; you're missing out on one of the most useful parts of Lisp programming. That said, if you were a conformist, you probably wouldn't be learning Lisp anyway. :) I'm new as well; just a few days into Lisp, and just finished the "Practical Common Lisp&...
- Sat Feb 05, 2011 5:30 pm
- Forum: Common Lisp
- Topic: Reading standard input
- Replies: 5
- Views: 9781
Re: Reading standard input
You bet - the more data I have, the more I learn. Is there a problem with that?vanekl wrote:asked and answered on c.l.l.
- Sat Feb 05, 2011 3:13 am
- Forum: Common Lisp
- Topic: Reading standard input
- Replies: 5
- Views: 9781
Reading standard input
Hi folks, new to clisp (just started today in fact).
Question...
How does one read standard input ie: my_script < file.in
So far I have:
Question...
How does one read standard input ie: my_script < file.in
So far I have:
Code: Select all
#!/usr/bin/env clisp
# chmod +x my_script
(loop for line = (read-line stream nil :eof)
until (eq line :eof)
print line ))
(bye)