Wednesday, June 12, 2002 08:10 AM
Use the listFiles method in the File class which allows you to pass in a FilenameFilter as an argument. You will have to create your own implementation of a FilenameFilter (anonymous class or otherwise) to do what you are looking for. A FilenameFilter gets the name of the file passed in, from there you can just use String methods to determine if it meets your requirements and return true/false;
Hope this helps.