HI, I almost solved it, but now I'm stuck! What I need to do is look in the folder, say.
String path = C:
I need a loop to find out how many files in this folder says 10. I need to look for files that start as
LAYER.EXE-******.pf
***** may vary depending on other things, but it doesnβt matter what it is, checks to see if the file that launches LAYER.EXE- finds, it has its flag. Below I am working on this, I would be very similar to your help and in advance in advance! :)
String path = "C://"; String files; File folder = new File(path); File[] listOfFiles = folder.listFiles(); for (int i = 0; i < listOfFiles.length; i++){ if (listOfFiles[i].isFile()){ files = listOfFiles[i].getName(); System.out.println(files); if (files == "LAYER.EXE.pf"){ System.out.println("found ================="); } } }
James source share