writer

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

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

Since Kotlin

1.5

Parameters

charset

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

options

options to determine how the file is opened.