Thanks, edn looks like the way to go but your example is not quite working. The issue appears to be with pr.
(defn foo [] 'foo) (def data {0 foo, 1 '[a b c]}) (spit filename (pr data)) First pr prints the data to *out* but then returns nil so spit is writing an empty file. Second despite the documentation that pr output is a readable format, when I attempt to read it I get a runtime exception of "Unreadable form" (pr foo) --> #<core$foo edntest.core$foo@7dce092>nil #<core$foo edntest.core$foo@7dce092> --> RuntimeException Unreadable form clojure.lang.Util.runtimeException (Util.java:219) Any help greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.