Leave a Reply 1

Your email address will not be published. Required fields are marked *


fjbo221

fjbo221

static boolean doesFileExist(String[] directories, String filename) {
String path = “”; // Should be “C:” on Windows
for (String dir : directories) {
path = path + File.separator + dir;
}
// System.out.println(path);
File file = new File(path, filename);
return file.exists();
}