Listing the File System Roots

UNIX file systems have a single root, `/'. On Windows, each drive is a root. For example the C drive is represented by the root C:\.
File[] roots = File.listRoots(); for (int i=0; i<roots.length; i++) { process(roots[i]); }

Comments

12 Mar 2010 - 7:56am by Anonymous (not verified)

Great Explanation

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.