0

Hello all well I'm trying to get the DIR of the user folder which is practically located at :

c:/Users/userName/

but the userName is different from one user to the other of course, so how would i get the DIR of the folder?

I know for the desktop directory its getHomeDirectory() , is there something similar to this folder?

thanks.

Boolena
  • 225
  • 1
  • 2
  • 10

1 Answers1

0

This answer might help you How do I get a file's directory using the File object?, i would suggest you to have a look at file class method's also

Community
  • 1
  • 1
pushpendra chauhan
  • 2,205
  • 3
  • 20
  • 29