forEachLine
Reads this file line by line using the specified charset and calls action for each line. Default charset is UTF-8.
You may use this function on huge files.
Since Kotlin
1.0Parameters
charset
character set to use.
action
function to process file lines.
Iterates through each line of this reader, calls action for each line read and closes the Reader when it's completed.
Since Kotlin
1.0Parameters
action
function to process file lines.