• (slurp f)
Reads the file named by f and returns it as a string.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/mmap.clj:33 top

(defn slurp
  "Reads the file named by f and returns it as a string."
  [^String f]
  (.. java.nio.charset.Charset (forName "UTF-8")
      (newDecoder) (decode (mmap f))))
Vars in clojure.contrib.mmap/slurp: .. defn slurp
Used in 0 other vars

Comments top

No comments for slurp. Log in to add a comment.