Return to Snippet

Revision: 54061
at December 8, 2011 23:25 by ef


Initial Code
(defn print-file [filename]
  (with-open [rdr (clojure.java.io/reader filename)]
    (println (line-seq rdr))))

Initial URL


Initial Description
Preferred way of printing files in Clojure.

Initial Title
Printing files in Clojure

Initial Tags
file

Initial Language
Clojure