Permalink
Browse files

Add 'Read a file line by line'

  • Loading branch information...
purcell committed Jan 17, 2012
1 parent 1025dd8 commit 49c1891ff3b51306d71db33ad062a2778870a26b
Showing with 3 additions and 0 deletions.
  1. +3 −0 read_a_file_line_by_line.clj
@@ -0,0 +1,3 @@
+(with-open [r (clojure.java.io/reader "some-file.txt")]
+ (doseq [l (line-seq r)]
+ (println l)))

0 comments on commit 49c1891

Please sign in to comment.