From: Robert Klemme Date: 2010-04-09T19:05:09+09:00 Subject: Re: importing config files On 04/09/2010 03:53 AM, Derril Lucci wrote: > Well, I am not too educated in configuration files. I was going to just > write it in ruby (thats the language I am working in). The > configuration file is being used to specify intervals in time. My > project is generating a report for SysAdmins and this will allow them to > specify the interval at which they want the reports to be compared. > Getting back to the main problem, I had thought it was either "require" > or "include", but both of those proved fruitless. Hope this info helps. The simples approach is to use "load": load File.join(ENV['HOME'], '.myconfrc') file ~/.myconfrc: $interval = 15 Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/