Thanks. Any ideas if it is possible to change the permissions on the file using Java so that I can programmatically take a arbitary file and ensure that the canRead() method will fail? From a quick Google it seems this is not possible in Java 5.
So it sounds like the only way I can get canRead() method to fail is by manually setting the permissions on the file in the O/S and then running my Java program? Sound right?