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
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