[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

saving objects to files

Ell Quing

7/30/2006 4:02:00 PM

Is there a way to save an object (say, a hash map) to a file, and then
retrieve the object from the file?

Thanks

--
Posted via http://www.ruby-....

2 Answers

Farrel Lifson

7/30/2006 4:15:00 PM

0

On 30/07/06, Ell Quing <turtlethief@hotmail.com> wrote:
> Is there a way to save an object (say, a hash map) to a file, and then
> retrieve the object from the file?
>
> Thanks

http://www.ruby-doc.org/core/classes/Ma...

Robert Klemme

7/30/2006 4:16:00 PM

0

Ell Quing wrote:
> Is there a way to save an object (say, a hash map) to a file, and then
> retrieve the object from the file?

Marshal and YAML are the easiest. Depending on your need you might want
to use PStore or a database. HTH

Kind regards

robert