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/.