From: Vahagn Hayrapetyan Date: 2009-09-05T20:45:19+09:00 Subject: Re: End of file error when trying to Marshal.load Tim, I'm on Mac OS X (Leopard). Now I have: Marshal.dump(o, File.open("output.txt", "wb")) data = File.open("output.txt", "rb") obj = Marshal.load(data) But I get the exact same error. / Vahagn Tim Hunter wrote: > Vahagn Hayrapetyan wrote: >> file. What's wrong? > I'm guessing you're on Windows. You need to open the file in binary > mode. That is, with "wb" and "rb". -- Posted via http://www.ruby-forum.com/.