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.5Parameters
character set to use for reading text, UTF-8 by default.
function to process file lines.