reader

inline fun Path.reader(charset: Charset = Charsets.UTF_8, vararg options: OpenOption): InputStreamReader(source)

Returns a new InputStreamReader for reading the content of this file.

Since Kotlin

1.5

Parameters

charset

character set to use for reading text, UTF-8 by default.

options

options to determine how the file is opened.