From: Nobuyoshi Nakada Date: 2008-03-21T06:16:02+09:00 Subject: Re: getting the user's home directory path Hi, At Thu, 20 Mar 2008 16:05:12 +0900, Chad Perrin wrote in [ruby-talk:295141]: > I've got a program that needs to access a file in the ~/etc/ directory. > This program currently accesses it like so: > > file_path = File.expand_path("~#{ENV['USER']}/etc/#{filename}") File.expand_path("~/etc/#{filename}") -- Nobu Nakada