Creates a new instance of the StreamWriter class.
Creates a new instance of the StreamWriter class for the specified stream, using the default encoding and buffer size.
[Visual Basic] Overloads Public Sub New(Stream)
[C#] public StreamWriter(Stream);
[C++] public: StreamWriter(Stream*);
[JScript] public function StreamWriter(Stream);
Creates a new instance of the StreamWriter class for the specified stream, using the specified encoding and the default buffer size.
[Visual Basic] Overloads Public Sub New(Stream, Encoding)
[C#] public StreamWriter(Stream, Encoding);
[C++] public: StreamWriter(Stream*, Encoding);
[JScript] public function StreamWriter(Stream, Encoding);
Creates a new instance of the StreamWriter class for the specified stream, using the specified encoding and buffer size.
[Visual Basic] Overloads Public Sub New(Stream, Encoding, Integer)
[C#] public StreamWriter(Stream, Encoding, int);
[C++] public: StreamWriter(Stream*, Encoding, int);
[JScript] public function StreamWriter(Stream, Encoding, int);
Creates a new instance of the StreamWriter class for the specified file on the specified path, using the default encoding and buffer size.
[Visual Basic] Overloads Public Sub New(String)
[C#] public StreamWriter(String);
[C++] public: StreamWriter(String*);
[JScript] public function StreamWriter(String);
Creates a new instance of the StreamWriter class for the specified file on the specified path, using the default encoding and buffer size. Overwrites or appends to an existing file, or creates a new file.
[Visual Basic] Overloads Public Sub New(String, Boolean)
[C#] public StreamWriter(String, bool);
[C++] public: StreamWriter(String*, bool);
[JScript] public function StreamWriter(String, Boolean);
Creates a new instance of the StreamWriter class for the specified file on the specified path, using the specified encoding and default buffer size. Overwrites or appends to an existing file, or creates a new file.
[Visual Basic] Overloads Public Sub New(String, Boolean, Encoding)
[C#] public StreamWriter(String, bool, Encoding);
[C++] public: StreamWriter(String*, bool, Encoding);
[JScript] public function StreamWriter(String, Boolean, Encoding);
Creates a new instance of the StreamWriter class for the specified file on the specified path, using the specified encoding and buffer size. Overwrites or appends to an existing file, or creates a new file.
[Visual Basic] Overloads Public Sub New(String, Boolean, Encoding, Integer)
[C#] public StreamWriter(String, bool, Encoding, int);
[C++] public: StreamWriter(String*, bool, Encoding, int);
[JScript] public function StreamWriter(String, Boolean, Encoding, int);
StreamWriter Class | StreamWriter Members | System.IO Namespace