Opposite of slurp. Opens f with writer, writes content, then
closes f.
(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)))
Comments top
No comments for spit. Log in to add a comment.