Mono Class Library: System.IO.StreamWriter Overview | Members

System.IO.StreamWriter.Flush Method

Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.

public override void Flush ()

Exceptions

TypeReason
ObjectDisposedExceptionThe current writer is closed.
System.IO.IOException An I/O error occurred.

Remarks

Note: This method overrides TextWriter.Flush.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0