Hi,

I'm looking for a way to write objects into files. It should be
simple. There is the File/IO::print method, but this calls the to_s
method of the object you pass to it, and you have the string in the
file. But I have not yet found anything to convert it back to an
object.

In Java, you have the possibility to call a method that simply writes
the object to the file and another that can read it.

Is there anything as simple as that in Ruby (or the counterpart to
print)?

Thanks