1.2.0 permalink Arrow_down_16x16



  • (write-properties m file-able)
  • (write-properties m file-able comments)
Write properties to file-able.

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/java_utils.clj:160 top

(defn write-properties
  "Write properties to file-able."
  {:tag Properties}
  ([m file-able] (write-properties m file-able nil))
  ([m file-able comments]
    (with-open [^FileOutputStream f (FileOutputStream. (file file-able))]
      (doto (as-properties m)
        (.store f ^String comments)))))
Vars in clojure.contrib.java-utils/write-properties: defn doto with-open
Used in 0 other vars

Comments top

No comments for write-properties. Log in to add a comment.