Dave Burt
2/28/2005 5:35:00 AM
"Guillaume Marcais" <guslist@free.fr> wrote in message:
> Le 26 févr. 05, à 02:05, Daniel Berger a écrit :
>
> To be even more basic, what would be the equivalent of the UNIX
> "?/.my_app.rc"? File.join(Dir::APPDATA, "my_app.rc")?
Some people use a dotfile:
File.join(Dir::PROFILE, ".irbrc")
Some people use a dotfile directory:
d = File.join(Dir::PROFILE, ".mysqlcc")
[File.join(d, 'mysqlcc.cfg'), File.join(d, 'history'), ...]
IMO, this is better:
d = File.join(Dir::APPDATA, "Application Name")
Or even:
d = File.join(Dir::APPDATA, "Vendor Name", "Application Name")
Cheers,
Dave