1.2.0 permalink Arrow_down_16x16
  • (spit f content)
Opposite of slurp. Opens f with writer, writes content, then
closes f.

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/io.clj:330 top

(defn spit
  "Opposite of slurp.  Opens f with writer, writes content, then
  closes f."
  {:deprecated "1.2"}
  [f content]
  (with-open [^Writer w (writer f)]
    (.write w content)))
Vars in clojure.contrib.io/spit: defn spit with-open
Used in 0 other vars

Comments top

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