klyn.io.FileOutputStream.FileOutputStream
constructor
public FileOutputStream(notnull path as Path, append as Boolean = false)
Description

Opens a binary file addressed by a Path, truncating by default.

Parameters
ParameterDescription
pathDestination path.
appendTrue appends; false truncates.
Throws
  • IOException if the file cannot be opened.
  • NullException if path is null at runtime; statically null arguments are rejected with TypeError.
Example

stream = FileOutputStream(Path("data.bin"))