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

System.IO.StreamWriter.Close Method

Closes the current System.IO.StreamWriter and the underlying stream. [Edit]

public override void Close ()

Remarks

This method calls StreamWriter.Flush , writing buffered data to the underlying stream. Following a call to StreamWriter.Close, any operations on the current instance might raise exceptions.

Note:

This version of StreamWriter.Close is equivalent to StreamWriter.Dispose(bool)(true).

This method overrides Stream.Close.

[Edit]

Requirements

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