Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
[Visual Basic] Overrides Public Sub Flush() [C#] public override void Flush(); [C++] public: override void Flush(); [JScript] public override function Flush();
Exception Type | Condition |
---|---|
IOException | The current writer is closed. |
StreamWriter Class | StreamWriter Members | System.IO Namespace | Close