1
2
3
4
5
6
7
8
9
10
11
12
if (!qAndA.exists()) {
			System.out.println("the file does not exists");
			return;
		} else if(qAndA.exists()){
			System.out.println("the file exists");
		}
    	if (!qAndA.canRead()) {
			System.out.println("the file exists but can't be read for whatever reason");
			return;
		} else if(qAndA.canRead()){
			System.out.println("the file exists and can be read");
		}