From: Tim Hunter Date: 2007-10-16T09:24:55+09:00 Subject: Re: Newbie question - how to get current directory into a variab 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, -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]