[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MIT-Scheme-users] Re ading files in mit-scheme
From: |
Broseph |
Subject: |
Re: [MIT-Scheme-users] Re ading files in mit-scheme |
Date: |
Fri, 20 Jan 2012 14:39:16 -0800 (PST) |
It worked thanks. Here is what i've done.
(define (list-lines-from-file file)
(let ((next-line (read-line file)))
(if (eof-object? next-line)
'()
(cons next-line (list-lines-from-file file)))))
Try the read-line procedure.
>
> _______________________________________________
> MIT-Scheme-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/mit-scheme-users
>
>
address@hidden
--
View this message in context:
http://old.nabble.com/Reading-files-in-mit-scheme-tp33171524p33177546.html
Sent from the Gnu - MIT Scheme - Users mailing list archive at Nabble.com.