From: Yukihiro Matsumoto Date: 2005-01-11T16:32:54+09:00 Subject: Re: file location Hi, In message "Re: file location" on Tue, 11 Jan 2005 12:10:19 +0900, Eko Budi Setiyo writes: |What comand that I should you in file2.rb that will "automatically" |produce result |"/home/eko" |"/home/eko/directory1/file2.rb" The current directory (which is returned from Dir.pwd) is something different from the directory where the program are stored. What about __FILE__ pseudo constant that shows the file name of the loading program? matz.