From: Intransition Date: 2010-04-08T11:12:58+09:00 Subject: Re: Best practice for saving settings in separate file On Apr 7, 9:20 pm, Oyvind Pettersen wrote: > I'm currently building an application that relies on a rather large set > of settings and paths that needs to sit in its own file. > > What are the best way to go about? XML? Simple strings in a text file? > > The settings files would be created manually, but the app will have to > update a few integers in the files. Unless you have a reason not to use it, the most common practice in Rubydom is to use YAML. require 'yaml' settings = YAML.load(File.new("file.yaml")) You can learn more about YAML here: http://www.yaml.org/ And very helpful to get started: http://www.yaml.org/YAML_for_ruby.html