I notice that the corresponding functions are marked as deprecated in 1.2, but I also get the impression that, as written, they have some errors that require smoothing.
-, , ( ):
(require '[clojure.java.io :as io])
(with-open [w (io/writer (io/file "/path/to/file")
:append true)]
(spit w "Foo foo foo.\n"))
( io/file io/writer - , , c.j.io URL- ( ), .)
, , clojure.contrib.io :
(require '[clojure.contrib.io :as cio])
(with-bindings {#'cio/assert-not-appending (constantly true)}
(cio/append-spit "/home/windfall/scratch/SO/clj/append-test.txt" "Quux quux quux?\n"))
, - . , , clojure.java.io . (, - - - .)