From: Robert Klemme Date: 2012-06-21T00:00:20+09:00 Subject: Re: marshal load: undefined class/module Field On Wed, Jun 20, 2012 at 12:55 PM, Mateusz Winiarski wrote: > I'm saving using code: > File.open(filename, "w") do |f| >  f.write Marshal::dump(@map) > end You want binary mode. Plus, you can directly hand over the stream: File.open(filename, 'wb') do |f| Marshal::dump(@map, f) end Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/