Click or drag to resize
StreamWriter Methods

The StreamWriter type exposes the following members.

Methods
  NameDescription
Protected methodDispose
Releases all resources.
(Overrides TextWriterDispose(Boolean).)
Public methodFlush
Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
(Overrides TextWriterFlush.)
Public methodStatic memberNew(Stream)
Returns new instance of stream writer class.
Public methodStatic memberNew(StreamWriter)
Returns new instance of stream writer class.
Public methodStatic memberNew(String)
Returns new instance of stream writer class.
Public methodStatic memberNew(Stream, Encoding)
Returns new instance of stream writer class.
Public methodStatic memberNew(String, Boolean)
Returns new instance of stream writer class.
Public methodStatic memberNew(String, Boolean, Encoding)
Returns new instance of stream writer class.
Public methodWrite(Char)
Writes one character to stream.
(Overrides TextWriterWrite(Char).)
Public methodWrite(String)
Writes a string to the stream.
(Overrides TextWriterWrite(String).)
Public methodWrite(Char, Int32, Int32)
Writes char array to the stream.
(Overrides TextWriterWrite(Char, Int32, Int32).)
Public methodWriteLine
Writes a string followed by a line terminator to the text stream.
(Overrides TextWriterWriteLine(String).)
Top
See Also