-
public class ListFilesSubs {
-
-
-
private static void doSimpleFileListing(String dirName) {
-
-
System.out.println();
-
System.out.println("Simple file listing...");
-
System.out.println("----------------------");
-
-
File dir = new File(dirName);
-
-
String[] children = dir.list();
-
-
printFiles(children, dirName);
-
-
}
-
This is a sample code taken from the internet .
Could you help me with this. i get an error as
Error with new_dir
Either directory does not exist or is not a directory
i need to run this program .Pl do help me with this.
Thanks for ur help in advance :)
Kind Regards,
john