bufferedReader

inline fun File.bufferedReader(charset: Charset = Charsets.UTF_8, bufferSize: Int = DEFAULT_BUFFER_SIZE): BufferedReader(source)

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

Since Kotlin

1.0

Parameters

bufferSize

necessary size of the buffer.


inline fun InputStream.bufferedReader(charset: Charset = Charsets.UTF_8): BufferedReader(source)

Creates a buffered reader on this input stream using UTF-8 or the specified charset.

Since Kotlin

1.0