Method
CreateNew
static func CreateNew(path: string) -> Result<FileOutputStream, StreamError>
Declaring type: FileOutputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileOutputStream.rvn
Exclusively creates a regular file and opens it for writing.
Parameters
| Name | Type | Description |
|---|---|---|
path |
String | New host filesystem path; parent directories must already exist. |
Return value
Result<FileOutputStream, StreamError>
Ok with a new output stream, or an error. An existing entry returns AlreadyExists and is not overwritten.
Remarks
No truncate, overwrite, append or recursive directory creation is implied.