I am trying to get some of the code to work. The goal is to check if the .XML file is in a specific directory.
This is what I still have.
File f = new File("saves/*.xml"); if(f.exists()) { } else { }
I'm trying to use a wildcard to search for a file ending in .XML, am I missing something simple here? Is there an easier way to check if at least one .XML file exists in the specified directory?
early.
java xml java-io
GeorgeV Apr 22 '13 at 9:20 2013-04-22 09:20
source share