Radu Spineanu wrote:
> Hi
>
> Is it possible to write a ruby object (like a hash for example) to a
> file, and then read it and use it accordingly ?
>
> Thanks,
> Radu Spineanu
>   

Yes, please see Marshal[1] and YAML[2].

-Justin

[1]http://ruby-doc.org/core/classes/Marshal.html
[2]http://ruby-doc.org/stdlib/libdoc/yaml/rdoc/index.html