← back to roto on ba3a.dev

write

fun write(value: T, path: Path)

Writes value to path through AtomicFile, so a crash never leaves a half-written file.


fun write(value: T, output: OutputStream)

Writes value to output, which is not closed.