From: James Britt Date: 2004-09-21T07:44:33+09:00 Subject: Re: Store object in on disk / mini database trans. (T. Onoma) wrote: > On Monday 20 September 2004 04:14 pm, Kristian Sę·”rensen wrote: > >>Thanks for both your suggestions! That was just what I needed! :-) > > > There's also YAML. > > require 'yaml' > > # save > open('myapp.dat', 'w') {|fh| fh << data.to_yaml } > > # retrieve > data = YAML.load(File.open('myapp.dat')) > > [Note: This is off th top of my head, so it's untested. But basically like > that.] > > Nice thing about YAML is that the file it creates is human readable and > editable! But you still reparse the data, which the OP wanted to avoid. James