writeTextToFile

fun InputStream.writeTextToFile(file: File, charset: Charset = Charsets.UTF_8)

Write this input stream to a text-file.

Author

Griefed

Parameters

file

The file to write to

charset

Charset to use for reading. Default is Charsets.UTF_8