how could i read the available drive letters of a user's system? does java.io.file offer such a method? i wasn't able to find one. (this applet will run on windows pc only. so i don't have to worry about unix or mac users)
File.listRoots(); will return just the root of the directory tree in Unix/Linux so if you want to list mounted drives Unix/Linux you'll have to jump through more hoops. Just a comment for if the code is to be cross platform.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.