In unix/linux, you can refer to a user's home directory like this:
I would like to use ~username, sense it is possible that the user's home directory would be at /home/username.
Java.io.File doesn't understand ~username; it only understands /home/username
Is there any solution, or am I stuck having to manually (in code) replace '~' with /home/username or the full path of the location of the user's directory?
Thank you for any help you can give.