How can I make this code work? IntelliJ complains ...
# announcements
a
How can I make this code work? IntelliJ complains that
condition 'line != null' is always 'true'
and when I compile it, I get the error
f.readLine() must not be null
.
Copy code
val f = File(fn).reader().buffered()
var line: String
line = f.readLine()
if (line != null) { ... }