We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Code:
String filename = "foo.txt"; File f = new File(dataPath(filename)); if (f.exists()){ // do something }
If you need to look in a specific subdirectory, try:
String filename = "foo.txt"; File f = new File(dataPath("/subdirectory/" + filename)); if (f.exists()) { // do something }
by clone45 see