directory
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   baban_kakde
Posted On:   Wednesday, July 11, 2007 04:42 AM

			
How to get name of all child directory from parent directory.Please give some code using java.

Re: directory

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, July 11, 2007 05:20 AM

Oh, and this should be in the category JavaLanguage. This has nothing to do with JDBC.

Re: directory

Posted By:   WarnerJan_Veldhuis  
Posted On:   Wednesday, July 11, 2007 05:19 AM


File[] children = new File("..").listFiles();
for ( int i = 0; i < children.length; i++) {
if ( children[i].isDirectory() ) {
//your code here
}
}
About | Sitemap | Contact