write Text To File
fun InputStream.writeTextToFile(file: File, charset: Charset = Charsets.UTF_8): <Error class: unknown class>
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