TTextRec

Top  Previous  Next

What is translated > File Input and Output > TTextRec

TTextRec is the runtime base class for TextFile.

 

It stores the current text reader or writer, the file mode, the assigned file name, the text encoding, and compatibility fields based on Delphi TTextRec.

 

Normal text files use StreamReader and StreamWriter internally.

 

The predefined Input, Output, and ErrOutput files use TextReader and TextWriter objects supplied by the console.

 

TTextRec keeps track of whether it owns the attached reader or writer.

 

Readers and writers created for normal files are disposed by CloseFile.

 

Console.In, Console.Out, and Console.Error are attached without ownership and are therefore not disposed by CloseFile.

 

TTextRec also provides the internal implementation for:

 

Rewrite

Append

Reset

Read

ReadLn

Write

WriteLn

Eof

Eoln



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content