mquigley
10/17/2017, 4:32 AMwhile ((line = reader.readLine()) != null) { ... }
In Kotlin, an assignment isn’t an expression so you can’t do that in the while’s conditional, so the direct replacement is:
while (true) {
line = reader.readLine();
if (line == null) break;