FileOutputStream FileOutputStream FileOutputStream FileOutputStream FileOutputStream Class


Writes data to a file.

public : sealed class FileOutputStream : IClosable, IOutputStream
struct winrt::Windows::Storage::Streams::FileOutputStream : IClosable, IOutputStream
public sealed class FileOutputStream : IDisposable, IOutputStream
Public NotInheritable Class FileOutputStream Implements IDisposable, IOutputStream
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Close() Close() Close() Close() Close()

Closes the current stream and releases system resources.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync() FlushAsync() FlushAsync() FlushAsync() FlushAsync()

Flushes data asynchronously in a sequential stream.

WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer)

Writes data asynchronously to a file.

See also