From: Peter Vanderhaden Date: 2007-10-16T09:36:44+09:00 Subject: Re: Newbie question - how to get current directory into a va Thanks Tim. the Dir.pwd is exactly what I need. I haven't figured out how to use the Dir.chdir yet, but that looks promising too. PV Tim Hunter wrote: > Peter Vanderhaden wrote: >> I'm running Ruby on Ubuntu Linux, and I need to be able to get the >> current directory that the program is running in into a variable in my >> program. Is there a simple way to do this? Also, is there a way to >> change directories within the program? >> Thanks.... > > Check out the Dir class, particularly Dir.pwd and Dir.chdir, -- Posted via http://www.ruby-forum.com/.