public FileOutputStream(notnull path as Path, append as Boolean = false)
Opens a binary file addressed by a Path, truncating by default.
| Parameter | Description |
|---|---|
path | Destination path. |
append | True appends; false truncates. |
stream = FileOutputStream(Path("data.bin"))