How in java do I find the users home directory? I have an app that
needs to write some files to the current users Documents and Settings
directory on XP.
Thanks,
Bryan
Try:
String userHome = System.getProperty("user.home");
hope that helps,
Carl.
Use system properties. A list of available properties are at:
http://www.mindspring.com/~mgrand/java-system-properties.htm
- Oliver
>How in java do I find the users home directory? I have an app that
>needs to write some files to the current users Documents and Settings
>directory on XP.
see http://mindprod.com/jgloss/properties.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com