hi i need help is there anyone here have the knowledge of java to retrieved files in the folder and print it out
im using this script
File folder = new File("your/path");
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles[i].isFile()) {
System.out.println("File " + listOfFiles[i].getName());
} else if (listOfFiles[i].isDirectory()) {
System.out.println("Directory " + listOfFiles[i].getName());
}
}
but the problem is im always seeing this error
500 (access denied (java.io.FilePermission \images\pictures read))
can anyone help me thanks