System.Classes.TStreamReader

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TTextReaderSystem.TObjectTStreamReader

Delphi

TStreamReader = class(TTextReader)

C++

class PASCALIMPLEMENTATION TStreamReader : public TTextReader

Properties

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

Description

Character stream reader.

TStreamReader is an implementation of a TTextReader that reads characters from a stream in a given character encoding.

This class is functionally similar to the Microsoft .NET class StreamReader. However, when you pass an instance of TStream instead of a filename to its creator, TStreamReader does not take ownership of this instance of TStream by default (you must manually call TStreamReader.OwnStream instead).

See Also

Code Examples