What is the best way for parsing multiple files from multiple directories?
I have a folder that contains 51 sub folders and each sub folder contains 100 files.
I know how to scan one single file using
File dataFile = new File("A.txt");
scan = new Scanner (dataFile);
while (scan.hasNext()){
System.out.print(scan.next() + "\t");
}
but how to generalize this to read from the different directories ?