lol i started that thread but ignore that one for now lol
anyways
thanks masijade for your reply
i tried something new
modified code below
public static void search(File f) {
if ( !f.exists() ) return;
String name = f.getName();
System.out.println(name);
if ( f.isDirectory() ) {
File[] files = f.listFiles();
if (files != null) {
for( int i = 0 ; i < files.length; i++ ) {
search( files[i] );
} if (f.length() <= 1) return;
}
}
}
well to the code ive added the following line:
if (f.length() <= 1) return;
but i dont think it has had any change in the list of results brought to the terminal window
can some one with more java knowledge tell me why please? any help or correction welcomed!
Last edited by caps_lock; Jan 11th, 2009 at 8:14 pm.