Skip to content

Instantly share code, notes, and snippets.

@SuzanneSoy
Forked from dumbs/gist:664848
Created November 5, 2010 20:55
Show Gist options
  • Save SuzanneSoy/664850 to your computer and use it in GitHub Desktop.
Save SuzanneSoy/664850 to your computer and use it in GitHub Desktop.
(defun readfile (name)
(let ((fd (open name)))
(prog1
(cons 'progn
(loop
for line = (read fd nil 'eof)
while (not (eq line 'eof))
collect line))
(close fd))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment