I'm trying to get a string value from external file with this method:
File file = new File(name);
BufferedReader br = new BufferedReader(new FileReader(file));
String line = br.readLine();
br.close();
And I have some lines that are equal to "null". But if I compare them to null or "null", or even to "", I get FALSE. What am I doing wrong?
"null",null, empty string, or you really are getting the javanullvalue?nullor String"null"?null? It may beemptyinstead.