New coder here & I've come to a halt in a program because I cannot get Java to recognize a file. I've created a File object
//Create File objects for IP and OP files
java.io.File fileIP = new java.io.File("RedeptionLabIP");
java.io.File fileOP = new java.io.File("RedeptionLabOP");
//Debug Code
System.out.println(fileIP.getAbsolutePath());
System.out.println(fileIP.getName());
System.out.println(fileIP.isDirectory());
System.out.println(fileIP.isFile());
System.out.println(fileIP.exists());
Returns
C:\Users\GCooke\Desktop\CSC - Intro to Programmig JAVA\RedemptionLab\RedeptionLabIP RedeptionLabIP
false
false
false
(the typo in Programming is not the issue, thats what i named my folder by accident D:)
any suggestions would help!