• (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/properties.clj:70 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.properties/write-properties: defn doto with-open
Used in 0 other vars

Comments top

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