Class
FileOutputStream
class FileOutputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileOutputStream.rvn
Inheritance: Object → FileOutputStream
Implements: OutputStream
A blocking, explicitly closed file write stream. Development API, not included in Preview 9. The Flush method is documented in the File streams guide.
Remarks
Native resources belong to the invocation. Close promptly; invocation teardown closes remaining files. A retained stream cannot be reused in another invocation. There is no finalizer, automatic disposal or asynchronous scheduling in this slice. FileInputStream additionally implements SeekableStream; FileOutputStream remains sequential.
See also
| Reference | Description |
|---|---|
— |
Flush contract and file stream guide |
Methods
8 items
Close() -> ()
Releases the open file. Repeated calls are harmless.
Implements OutputStream.Close
Static member:
CreateNew(path: string) -> Result<FileOutputStream, StreamError>
Exclusively creates a regular file and opens it for writing.
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
Flush(cancellationToken?: CancellationToken) -> Task<Result<void, StreamError>>
No summary available.
Implements OutputStream.Flush
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString
Write(buffer: byte[], offset: int, count: int, cancellationToken?: CancellationToken) -> Task<Result<void, StreamError>>
Completes the range inline with the current blocking provider; partial failures are not rolled back.
Implements OutputStream.Write