From: yvon.thoravallist@... (Yvon Thoraval) Date: 2003-09-17T21:54:56+09:00 Subject: Re: [newbie]saving and reading array of associative array Joey Gibson wrote: > > You could also use YAML: > > require 'yaml' > one = {"Name" => "Smith", "Surname" => "John"} > two = {"Name" => "Dupont", "Surname" => "Jean"} > > myFriends = [one, two] > > File.open("myfriends.db", "w") {|file| file.write(myFriends.to_yaml)} > myFriends = File.open("myfriends.db") {|file| YAML.load(file)} fine, i should say i've other versions of what i plan to do in : - perlCocoa (CamelBones specific to MacOS X) - php + xml - php + mySQL -- Yvon