From: Ben Giddings Date: 2009-08-19T14:15:00+09:00 Subject: Re: Relative Path in ruby - for File open On Aug 19, 2009, at 01:02, Shekar Ls wrote: > In the above mentioned example, i want config.txt to be accessed from > the current path whichever user runs it. By "current path" do you mean executable path or the current working directory of the script? If you mean the current working directory (i.e. ENV['PWD']) everything should work as you expect. Just do File.open("config.txt") Ben