Friday 1 July 2011

Listing the File System Roots


Listing the File System Roots

     public static void main(String args[]){
         try{
         File[] roots = File.listRoots();
             for (int i=0; i             System.out.println((roots[i]));
         }
     }
         catch (Exception ioe){
         ioe.printStackTrace();
     }
}

People who read this post also read :



No comments:

Post a Comment