Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Close

func Close() -> ()

Declaring type: FileOutputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileOutputStream.rvn

Implements OutputStream.Close

Releases the open file. Repeated calls are harmless.

Return value

()

Remarks

Subsequent operations return Closed. Close is not a flush or durability guarantee and does not report OS close errors. Invocation teardown releases resources after an unhandled runtime fault.