So, I am reading the input from a file that says these lines:
NEO
You're the Oracle?
NEO
Yeah.
So, I want to output only its actual lines, and not where it says NEO. So I tried this:
if(line.trim()=="NEO")
output=false;
if (output)
TextIO.putln(name + ":" + "\"" + line.trim() + "\""); // Only print the line if 'output' is true
But that does not work. He still prints NEO. How can i do this?
source
share