Method
Open
static func Open(path: string) -> Result<FileInputStream, StreamError>
Declaring type: FileInputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileInputStream.rvn
Opens an existing regular file for reading, positioned at its beginning.
Parameters
| Name | Type | Description |
|---|---|---|
path |
String | Host filesystem path; normal host permissions and symlink resolution apply. |
Return value
Result<FileInputStream, StreamError>
Ok with a new input stream, or an error such as InvalidPath, NotFound, AccessDenied, WrongKind or LimitExceeded.