kotlin-stdlib / kotlin.io / java.io.File / printWriter printWriter JVM 1.0 fun File.printWriter( charset: Charset = Charsets.UTF_8): PrintWriter(source) Returns a new PrintWriter for writing the content of this file.