fun Reader.forEachLine(action: (String) -> Unit)
Platform and version requirements: JVM
Iterates through each line of this reader, calls action for each line read and closes the Reader when it's completed.
action
- function to process file lines.
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/java.io.-reader/for-each-line.html