if I want to include all the xml files in a directy and its sub directory , say C:\test,
do i just do the following
plz let me know
posted 11 years ago
Just write a class that implements FileFilter. Then create a method called accept that takes in a File object and returns a boolean. Inside this method, test the extension. If the extension is ".xml", return true, otherwise, return false.