TStreamWriter = class(TTextWriter)
class PASCALIMPLEMENTATION TStreamWriter : public TTextWriter
Writer for characters to stream.
TStreamWriter is an implementation of a TTextWriter for writing characters to a stream in a designated encoding.
This class is functionally similar to the Microsoft .NET class StreamWriter. However, when you pass an instance of TStream instead of a filename to its creator, TStreamWriter does not take ownership of this instance of TStream by default (you must manually call TStreamWriter.OwnStream instead).