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

System.IO.StreamReader.DiscardBufferedData Method

Allows a System.IO.StreamReader to discard its buffered data. [Edit]

public void DiscardBufferedData ()

Remarks

Note: This method is useful when reading from a stream after seeking to a new position. If this method is not called and the internal buffer is not empty, a read attempt at the new location will first return data that is in the buffer before returning the text at the current position in the stream.
[Edit]

Requirements

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