Skip to content

Instantly share code, notes, and snippets.

@mefesto
Created May 26, 2011 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mefesto/992465 to your computer and use it in GitHub Desktop.
Save mefesto/992465 to your computer and use it in GitHub Desktop.
(with-open [rdr (io/reader (io/file "file.txt"))]
(doseq [line (line-seq rdr)]
(println "line:" line)))
(with-open [lines (line-seq (io/file "file.txt"))]
(doseq [line lines]
(println "line:" line)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment