I’m trying to open a file from Java in Ubuntu using FileInputStream.Now my problem is,how can i find the path of the current user as /home/"currentuser"/myfile.xxx?? Normally i use the path as a string since i know the current user.
Regards.
I’m trying to open a file from Java in Ubuntu using FileInputStream.Now my problem
Share
The user’s home directory can be retrieved via
See System Properties