Click or drag to resize
StreamWriter Class
Represents a writer that can write a sequential series of characters.
Inheritance Hierarchy

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax
C#
public class StreamWriter : TextWriter

The StreamWriter type exposes the following members.

Properties
  NameDescription
Public propertyBaseStream
Gets the underlying stream that interfaces with a backing store.
Public propertyEncoding
Returns current stream writer encoding.
(Overrides TextWriterEncoding.)
Top
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