I am trying to get the names of all of the text files in a directory. If the directory has subdirectories then I also want to get any text files in those as well. I am not s
This is a recursive problem
public void find_files(File root) { File[] files = root.listFiles(); for (File file : files) { if (file.isFile()) { ... } else if (file.isDirectory()) { find_files(file); } } }