From: Joel VanderWerf Date: 2008-05-21T01:03:30+09:00 Subject: Re: how to serialize hash to a file? Robert Klemme wrote: > 2008/5/20 Joel VanderWerf : ... >> h = {1=>2, 3=>4} >> File.open("foo", "wb") {|f| Marshal.dump(h, f)} >> p File.open("foo", "rb") {|f| Marshal.load(f)} # ==> {1=>2, 3=>4} > > Amazing how we nearly picked the same solution - even the file name is > identical. :-) Heh. Maybe we've just been here too long, and our brains have been saturated ;) -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407