outputStream

inline fun Path.outputStream(vararg options: OpenOption): OutputStream(source)

Constructs a new OutputStream of this file and returns it as a result.

The options parameter determines how the file is opened. If no options are present then it is equivalent to opening the file with the CREATE, TRUNCATE_EXISTING, and WRITE options.

Since Kotlin

1.5