Skip to content

Instantly share code, notes, and snippets.

@yedi
Created November 17, 2012 01:57
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 yedi/4092610 to your computer and use it in GitHub Desktop.
Save yedi/4092610 to your computer and use it in GitHub Desktop.
(defn parse-lines [filename]
(with-open [rdr (clojure.java.io/reader filename)]
(line-seq rdr)))
(defn rhyme-list []
(parse-lines "Documents/dev/rhyme-finder/rhymes.txt"))
;; (count (rhyme-list))
;; IOException Stream closed java.io.BufferedReader.ensureOpen (BufferedReader.java:97)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment