Mono Class Library: Overview

System.IO.StreamWriter: Members

The members of System.IO.StreamWriter are listed below.

See Also: Inherited members from System.IO.TextWriter

Public Constructors

Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified stream, using the default encoding and buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified file on the specified path, using the default encoding and buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified stream, using the specified encoding and the default buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified file on the specified path, using the default encoding and buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified stream, using the specified encoding and buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified file on the specified path, using the specified encoding and default buffer size.
Constructs and initializes a new instance of the System.IO.StreamWriter class for the specified file on the specified path, using the specified encoding and buffer size.

Public Fields

static readonly
NullStreamWriter. Documentation for this section has not yet been entered.

Public Properties

AutoFlushbool. Gets or sets a bool value indicating whether the current System.IO.StreamWriter will flush its buffer to the underlying stream after every call to StreamWriter.Write(char).
[read-only]
BaseStreamStream. Gets the underlying stream.
[read-only]
override
EncodingSystem.Text.Encoding. Gets the System.Text.Encoding in which the output is written.

Public Methods

override
Close()
Closes the current System.IO.StreamWriter and the underlying stream.
Finalize()
Releases resources held by the current instance.
override
Flush()
Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
override
Write(char)
Writes a character to the stream.
override
Write(char[])
Writes a character array to the underlying stream.
override
Write(string)
Writes a string to the stream.
override
Write(char[], int, int)
Writes a sub-array of characters to the underlying stream.

Protected Methods

override
Dispose(bool)
Releases the unmanaged resources used by the System.IO.StreamWriter and optionally releases the managed resources.