From: Shashank Date Date: 2003-05-31T10:54:36+09:00 Subject: Re: Marshall and StringIO objects "Shashank Date" wrote in message > C:\>irb -r stringio > irb(main):001:0> sio = Marshal.dump('foobar',StringIO.new) > => # > irb(main):002:0> Marshal.load(sio) > EOFError: End of file reached > from (irb):2:in `load' > from (irb):2 > irb(main):003:0> quit Oops ... sorry, copied the wrong example. Here is the correct one: C:\>irb -r stringio irb(main):001:0> sio = Marshal.dump('foobar',StringIO.new) => # irb(main):002:0> p sio # => nil irb(main):003:0> sio.rewind => 0 irb(main):004:0> puts Marshal.load(sio) foobar => nil irb(main):005:0> quit