Skip to content

Instantly share code, notes, and snippets.

@dumbs
Created November 5, 2010 20:54
Show Gist options
  • Save dumbs/664848 to your computer and use it in GitHub Desktop.
Save dumbs/664848 to your computer and use it in GitHub Desktop.
(defun readfile (name)
(let ((fd (open name)))
(loop
for line = (read fd nil 'eof)
when (not (eq line 'eof))
do (print line)
else return (close fd)
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment