contentIterator

fun Path.contentIterator(charset: Charset = Charsets.UTF_8): CharIterator
fun File.contentIterator(charset: Charset = Charsets.UTF_8): CharIterator

Constructs an iterator from a buffered reader created on this input stream of this file and returns it as a result, using UTF-8 or the specified charset.

Parameters

charset

the Charset used for the iterator.