kotlin.io.java.io.File.forEachLine

forEachLine

fun File.forEachLine(
    charset: Charset = Charsets.UTF_8, 
    action: (line: String) -> Unit)

Platform and version requirements: JVM

Reads this file line by line using the specified charset and calls 登录查看完整内容