Re: Slurping structs from file fails with whitespace string attributes

2009-06-07 Thread Perttu
Thanks! Sorry about double-posting, the message took over 24 hours to appear here. -Perttu On May 29, 2:56 pm, "J. McConnell" wrote: > On Thu, May 28, 2009 at 4:23 PM, Perttu wrote: > > > I use a store-function like this: > > > (defn store-customer-db [customer-db filename] > >  (spit filenam

Re: Slurping structs from file fails with whitespace string attributes

2009-05-29 Thread J. McConnell
On Thu, May 28, 2009 at 4:23 PM, Perttu wrote: > > I use a store-function like this: > > (defn store-customer-db [customer-db filename] > (spit filename (with-out-str (print customer-db I believe this is your problem. The print/println functions print in a format suitable for human consump

Slurping structs from file fails with whitespace string attributes

2009-05-29 Thread Perttu
Hi. I'm a newbie so bare with me. I have just started playing with Clojure and the first thing I thought I'd try is storing and retrieving a seq of structs, like in Suart Halloway's example here: http://github.com/stuarthalloway/practical-cl-clojure/blob/1c2f138bda5e73ebbbafbc2cea7e5cd14ec335c4/