write

fun Path.write(block: Output.() -> Unit)

Write a live output to a newly created file. If file does not exist, throws error