Skip to content

Instantly share code, notes, and snippets.

@Liutos
Created June 15, 2012 05:49
Show Gist options
  • Save Liutos/2934880 to your computer and use it in GitHub Desktop.
Save Liutos/2934880 to your computer and use it in GitHub Desktop.
Demo of reading file
(with-open-file (stream "/home/liutos/src/lisp/foo.lisp"
:direction :input)
(loop
(let ((line (read-line stream nil)))
(if line
(format t "~A~%" line)
(return)))))
@Liutos
Copy link
Author

Liutos commented Jun 16, 2012

我还没读过太大的文件感觉不出来,暂时不成为问题;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment