StreamWriter |
IObject | |
TextWriter |
Name | Description |
---|---|
![]() | Returns if the writer autoflushes after each write. |
![]() | Sets if the writer autoflushes after each write. |
![]() | Returns the stream this writer is using. |
![]() | Returns the encoding being used by this writer. |
![]() | Returns the format provider being used by this writer. |
![]() | Returns the new-line string used by this writer. |
![]() | Sets the new-line string used by this writer. |
Name | Description |
---|---|
![]() | Closes this writer, flushing any buffers needed. |
![]() | Returns a boolean indicating if the value and this object instance are the same instance. |
![]() | Flushes the buffers to the underlying stream. |
![]() | Returns a pseudo-unique number identifying this instance. |
![]() | Returns a string representation of this object instance. |
![]() | Writes a subarray of characters to the stream. |
![]() | Writes the value, then appends the new-line string. |
![]() | Writes a subarray of characters to the text stream, followed by a line terminator. |
![]() | Writes the encoded string representation of the value to the stream. |
StreamWriter defaults to using an instance of UTF8Encoding unless specified otherwise. This instance of UTF8Encoding is constructed without a byte order mark (BOM), so its GetPreamble method returns an empty byte array. To create a StreamWriter using UTF-8 encoding and a BOM, consider using a constructor that specifies encoding, such as NewStreamWriter(String, Boolean, Encoding).