Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2014 05:20
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 anonymous/4e1feb0d1005c88c4598 to your computer and use it in GitHub Desktop.
Save anonymous/4e1feb0d1005c88c4598 to your computer and use it in GitHub Desktop.
user=> (def line-by-line
#_=> (fn [filename]
#_=> (with-open [rdr (reader filename)]
#_=> (doseq [line (line-seq rdr)]
#_=> (println line)))))
#'user/line-by-line
user=> (line-by-line '/tmp/hi')
RuntimeException Invalid token: /tmp/hi' clojure.lang.Util.runtimeException (Util.java:221)
RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:221)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment