From: Daniel Berger Date: 2007-09-14T04:49:54+09:00 Subject: Re: Cross-platform Home Directory? On Sep 13, 1:37 pm, Joel VanderWerf wrote: > Trans wrote: > > I have a little app that needs to store session data. I assume the > > best place to store it is in one's home directory, but I need this app > > to be cross-platform. I glanced through all rbconfig.rb's > > Config::CONFIG settings but did not see anything for it. How does one > > access a cross-platform home directory? > > This is one way of guessing: I think the appdata directory is where you want it for MS Windows. You can use win32-dir, since the environment variable may not be defined: when /mswin/ require 'win32/dir' Dir::APPDATA Regards, Dan