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.
posted 12 years ago
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 ]