appendingSink

common
abstract fun appendingSink(file: Path): Sink

Returns a sink that appends bytes to the end of file, creating it if it doesn't already exist.

Throws

if file cannot be written. A file cannot be written if its enclosing directory does not exist, if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

js
abstract fun appendingSink(file: Path): Sink

Throws