Method
OpenRead
abstract virtual func OpenRead() -> Result<InputStream, StreamError>
Declaring type: File
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn
Defined by File.OpenRead · Required implementation (no default).
Interface implementation: Required implementation (no default).
Opens existing bytes for reading.
Return value
Result<InputStream, StreamError>
InputStream on success, or the retained provider's StreamError unchanged.
Remarks
The provider-specific File implementation opens its represented address. The caller closes a successful stream. Opening can fail even after successful lookup. Creation never overwrites an existing entry; later write failure does not roll back creation.