writeChannel

fun <Error class: unknown class>.writeChannel(block: (<Error class: unknown class>) -> Unit)

Extension method to write a file as is without converting it to UTF-8 or anything else. Useful for writing files on a byte level.