I've tried this:
File file = new File(path);
file.setReadable(false);
System.out.println(file.canRead()); // returns true
How can I make a file unreadable with Java code ?
I've tried this:
File file = new File(path);
file.setReadable(false);
System.out.println(file.canRead()); // returns true
How can I make a file unreadable with Java code ?