Method
CreateNew
abstract virtual func CreateNew() -> Result<OutputStream, StreamError>
Declaring type: File
Module: System.Storage
Assembly: System.Runtime.dll
Source file: StorageItems.rvn
Defined by File.CreateNew · Required implementation (no default).
Interface implementation: Required implementation (no default).
Exclusively creates an empty file for writing.
Return value
Result<OutputStream, StreamError>
OutputStream 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.