appendingSink

expect abstract fun appendingSink(file: Path, mustExist: Boolean = false): Sink

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

Parameters

mustExist

true to throw an IOException instead of creating a new file. This is equivalent to r+ on POSIX and OPEN_EXISTING on Windows.

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.

actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
fun appendingSink(file: Path): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink