nkiesel
01/18/2018, 8:32 PMval writers = mutableMapOf<String, StringBuilder>() and a val current: StringBuilder? = null. I first then used for (line in reader.readLines()) { ... } which works but reads the whole file into memory. However, reader.forEachLine { line -> ... } does not work. So what is the Kotlin way of doing this?