From: Michael Linfield Date: 2009-03-17T16:37:19+09:00 Subject: Re: Fetching cookie??? > path where username is not required to fetch the cookie. After fetching > i'll store it in an array and display its name and content. Oh ok, that's easy enough. So if you wanted to change to the cookie directory say of "C:/Documents and Settings/username/cookies" but "username" is not pre-defined you could use something like this: Dir.chdir("C:/Documents and Settings/#{ENV['USERNAME']}/cookies") This would use the account username that the user is currently logged into. Naturally, the paths would be different using *nix Regards, - Mac -- Posted via http://www.ruby-forum.com/.