clojure.core/spit¶
Opposite of slurp. Opens f with writer, writes content, then closes f. Options passed to clojure.java.io/writer.
Examples¶
Note by flyboarder¶
The only valid options for spit are :append and :encoding.
Note by didibus¶
Valid options include:
:append true to open stream in append mode
:encoding string name of encoding to use, e.g. \"UTF-8\".
See also¶
- clojure.core/slurp (2)
- clojure.java.io/writer (1)
- clojure.core/load-file (0)
- clojure.java.io/make-parents
Content from the matching ClojureDocs page, with authors credited on each contribution.