Getting user home directory
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sun Apr 8 08:40:03 PDT 2007
"Lorenzo Villani" <arbiter at beyond-linux.org> wrote in message
news:ev8q4s$ed$1 at digitalmars.com...
>A simple question, is it possible to get the user home directory using a D
>function or something? Thanks :D
Another way would be to use the std.path.expandTilde function, i.e.
import std.path;
...
char[] rsrcDir = std.path.expandTilde("~/myresources");
And it'll get you the path within the user's home directory.
More information about the Digitalmars-d-learn
mailing list