printWriter

inline fun File.printWriter(charset: Charset = Charsets.UTF_8): PrintWriter(source)

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

Since Kotlin

1.0