StreamWriter Members

Windows Automotive 5.0/5.5

The following tables list the members exposed by the StreamWriter type.

Public MethodStreamWriter Initializes a new instance of the StreamWriter class for the specified file on the specified path, using the default encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file.

Public PropertyBaseStream Gets the underlying stream that interfaces with a backing store.
Public PropertyCurrentEncodingGets the Encoding which this StreamWriter currently uses to write output.
Public PropertyEncoding Gets the Encoding in which the output is written.

Public MethodClose Closes the current StreamWriter object and the underlying stream.
Public MethodDispose Releases the unmanaged resources used by the StreamWriter and optionally releases the managed resources.
Public MethodFlush Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
Public MethodWrite Writes a character to the stream.
Public MethodWriteLine Writes a string followed by a line terminator to the text stream.

Community Additions