FileOutputStream
FileOutputStream
FileOutputStream
FileOutputStream
Class
Definition
Writes data to a file.
public : sealed class FileOutputStream : IClosable, IOutputStreampublic sealed class FileOutputStream : IDisposable, IOutputStreamPublic NotInheritable Class FileOutputStream Implements IDisposable, IOutputStream// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
Close() Close() Close() Close()
Closes the current stream and releases system resources.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
- See Also
Dispose() Dispose() Dispose() Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()
FlushAsync() FlushAsync() FlushAsync() FlushAsync()
Flushes data asynchronously in a sequential stream.
public : IAsyncOperation<PlatForm::Boolean> FlushAsync()public IAsyncOperation<bool> FlushAsync()Public Function FlushAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Returns
IAsyncOperation<PlatForm::Boolean>
IAsyncOperation<bool>
IAsyncOperation<bool>
IAsyncOperation<bool>
The stream flush operation.
Remarks
The FlushAsync method may produce latencies and does not always guarantee durable and coherent storage of data. It's generally recommended to avoid this method if possible.
WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer)
Writes data asynchronously to a file.
public : IAsyncOperationWithProgress<unsigned int, unsigned int> WriteAsync(IBuffer buffer)public IAsyncOperationWithProgress<uint, uint> WriteAsync(IBuffer buffer)Public Function WriteAsync(buffer As IBuffer) As IAsyncOperationWithProgress( Of uint, uint )// You can use this method in JavaScript.
Parameters
The buffer into which the asynchronous writer operation writes.
Returns
IAsyncOperationWithProgress<unsigned int, unsigned int>
IAsyncOperationWithProgress<uint, uint>
IAsyncOperationWithProgress<uint, uint>
IAsyncOperationWithProgress<uint, uint>
The byte writer operation.