StreamWriter

StreamWriter


Writes characters to a byte stream using the specific encoding.


Remarks

The default encoding used is UTF8Encoding. If the writer is not appending to the stream, then an encoding preamble is written to the stream.

See Also

Project VBCorLib Overview | Constructors | StreamReader | TextWriter

Implements:

IObject 
TextWriter 

Public:

Properties:

NameDescription
 AutoFlush (get)Returns if the writer autoflushes after each write. 
 AutoFlush (let)Sets if the writer autoflushes after each write. 
 BaseStream (get)Returns the stream this writer is using. 
 Encoding (get)Returns the encoding being used by this writer. 
 FormatProvider (get)Returns the format provider being used by this writer. 
 NewLine (get)Returns the new-line string used by this writer. 
 NewLine (let)Sets the new-line string used by this writer. 

Methods:

NameDescription
 CloseWriterCloses this writer, flushing any buffers needed. 
 EqualsReturns a boolean indicating if the value and this object instance are the same instance. 
 FlushFlushes the buffers to the underlying stream. 
 GetHashCodeReturns a pseudo-unique number identifying this instance. 
 ToStringReturns a string representation of this object instance. 
 WriteLineWrites the value, then appends the new-line string. 
 WriteValueWrites the encoded string representation of the value to the stream.