How do I get a list of the files in a directory? I am aware of JFileChooser but it is not what I am looking. I need to search the contents of the xml files in the directory. I can do this with one file but need to do it with them all.
list() "Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname." e.g. dir = new File( directoryname ); String[] contents = dir.list(); [ March 06, 2004: Message edited by: Carlos Failde ]
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
Gift giving made easy with the permaculture playing cards