From: Edwin van Leeuwen Date: 2006-06-06T23:29:17+09:00 Subject: Re: Using Ruby to read .properties file unknown wrote: > I am working on a project in which I need to read and write the > .properties files. Is there a way to do this in Ruby ... other than > writing code from scratch. > Have a look at yaml, It allows you to easily save objects in files and read them. You can have an optionshash and just File.open(propertiesfile, "w+") { |f| f.puts( optionshash.to_yaml ) } hash = YAML.load( propertiesfile ) http://yaml4r.sourceforge.net/ Edwin -- Posted via http://www.ruby-forum.com/.