Re: newbie: read, load and eval

2006-10-22 Thread Mike Gran
Let's say you had a file "a.data" that contained ("This" "is" "a" "test") Note that there is no initial quote. One way would be (display (read (open-input-file "a.data"))) but this doesn't explicity close the file "a.data" right after the call, which might be an issue if you are opening a lo

Re: newbie: read, load and eval

2006-10-22 Thread dale
Mike Gran writes: >> >> Let's say you had a file "a.data" that contained >> >> ("This" "is" "a" "test") >> >> Note that there is no initial quote. >> >> ... >> >> One step up could be >> >> (call-with-input-file "a.data" (lambda (p) (display (read p Perfect! I was basically making a