Thanks!

Sorry about double-posting, the message took over 24 hours to appear
here.

-Perttu



On May 29, 2:59 pm, Christophe Grand <christo...@cgrand.net> wrote:
> On 29 mai, 05:55, Perttu <perttu.aur...@gmail.com> wrote:
>
> > I use a store-function like this:
>
> > (defn store-customer-db [customer-db filename]
> >   (spit filename (with-out-str (print customer-db))))
> > From the output file of spit I can see that the print doesn't give
> > double quotes to the strings which seems to be a problem for slurp.
> > What would be the correct solution for this?
>
> Use pr instead of print (seehttp://clojure.org/api#pr"By default, pr
> and prn print in a way that objects can be read by the reader").
> You can even remove with-out-str if you use pr-str
>
> hth
>
> Christophe
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to