System.Classes.TStreamWriter

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TTextWriterSystem.TObjectTStreamWriter

Delphi

TStreamWriter = class(TTextWriter)

C++

class PASCALIMPLEMENTATION TStreamWriter : public TTextWriter

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

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).

See Also

Code Examples