when I try to scan the folder Files it gives me an error saying access is denied. The folder contains txt files to scan through.
Scanner ScanningFile = new Scanner(new File("Files"));
java.io.FileNotFoundException: Files (Access is denied)
Any Ideas ?
you can’t read a directory that way you need to use the
File.listFiles()methods