Getting user home directory
Unknown W. Brackets
unknown at simplemachines.org
Sat Apr 7 14:04:47 PDT 2007
Well, you can use getenv(), which is in std.c.stdlib (you'll have to use
toStringz().) You'd just want the "HOME" variable.
Note that on Windows, the closest match would probably be USERPROFILE or
APPDATA. If you care about Windows.
-[Unknown]
> A simple question, is it possible to get the user home directory using a D function or something? Thanks :D
More information about the Digitalmars-d-learn
mailing list