From: Kamarulnizam Rahim Date: 2011-01-27T11:03:14+09:00 Subject: Re: writing on yaml file I also alter some of the codes: convert_yaml = YAML::load_file('nizam.yaml') pp convert_yaml["System"]["Environmental"]["children"][2]["children"] convert_yaml["System"]= [{"name"=>"nizam", "type"=>"Objective", "subtype"=>"None", "components"=> [{"type"=>"ContentBox", "title"=>"Audit", "args"=>{:content=>"None\n"}}, {"type"=>"ChildListingComponent", "title"=>"Current Targets for the Audit Objective:"}]}] File.open("nizam.yaml", "w"){|f| YAML.dump(convert_yaml.to_yaml, f)} But the same error appears. Nizam -- Posted via http://www.ruby-forum.com/.