Export (0) Print
Expand All

StreamWriter Constructor

Initializes a new instance of the StreamWriter class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by the XNA Framework Supported by Portable Class Library StreamWriter(Stream) Initializes a new instance of the StreamWriter class for the specified stream by using UTF-8 encoding and the default buffer size.
Public method Supported by the XNA Framework StreamWriter(String) Initializes a new instance of the StreamWriter class for the specified file by using the default encoding and buffer size.
Public method Supported by the XNA Framework Supported by Portable Class Library StreamWriter(Stream, Encoding) Initializes a new instance of the StreamWriter class for the specified stream by using the specified encoding and the default buffer size.
Public method Supported by the XNA Framework StreamWriter(String, Boolean) Initializes a new instance of the StreamWriter class for the specified file by 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 method Supported by the XNA Framework Supported by Portable Class Library StreamWriter(Stream, Encoding, Int32) Initializes a new instance of the StreamWriter class for the specified stream by using the specified encoding and buffer size.
Public method Supported by the XNA Framework StreamWriter(String, Boolean, Encoding) Initializes a new instance of the StreamWriter class for the specified file by using the specified encoding and default 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 method StreamWriter(Stream, Encoding, Int32, Boolean) Initializes a new instance of the StreamWriter class for the specified stream by using the specified encoding and buffer size, and optionally leaves the stream open.
Public method Supported by the XNA Framework StreamWriter(String, Boolean, Encoding, Int32) Initializes a new instance of the StreamWriter class for the specified file on the specified path, using the specified 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.
Top
Show:
© 2015 Microsoft