bufferedWriter

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

Returns a new BufferedWriter for writing the content of this file.

Since Kotlin

1.0

Parameters

bufferSize

necessary size of the buffer.


inline fun OutputStream.bufferedWriter(charset: Charset = Charsets.UTF_8): BufferedWriter(source)

Creates a buffered writer on this output stream using UTF-8 or the specified charset.

Since Kotlin

1.0