From: Vahagn Hayrapetyan Date: 2009-09-06T00:43:30+09:00 Subject: Re: End of file error when trying to Marshal.load @Robert: Sure! def marshal_class o = Klass.new("hello") print o.sayHello, " from original object\n" File.open("data.txt", "w") do |file| Marshal.dump(o, file) end File.open("data.txt", "r") do |file| @obj = Marshal.load(file) end print @obj.sayHello + " from restored object\n" end That's a good article, btw. Cheers, Vahagn -- Posted via http://www.ruby-forum.com/.