Quote Originally Posted by Norm View Post
You should read into a String variable first, check the contents of the String for null and then compare the contents
I'm sorry I don't understand what you mean? Do you mean like a String literal, and then compare the String literal to the contents of the file?

Like:

Code:
 
String check = "NewObject";
if(br.readLine.equals(check)) {// code }