Possible Duplicate:
In java under Windows, how do I find a redirected Desktop folder?
How to get the Desktop path in java
I want to write my results to the desktop of the user rather than to the same directory as file class that I am running.
I am using Mac OS.. How about in Window?1
Thanks
The user’s home directory is:
In general +”/Desktop” would do, but is not portable.
This would write the file “mytext.txt” to the home directory.