[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

TextRec

Text file type

Declaration

Source position: textrec.inc line 37

type TextRec = record

  Handle: THandle;

  

Low-level OS file handle

  Mode: LongInt;

  

Open mode

  bufsize: SizeInt;

  

Actual buffer size

  _private: SizeInt;

  

Private data

  bufpos: SizeInt;

  

Current buffer position

  bufend: SizeInt;

  

Current buffer end position

  bufptr: ;

  

Pointer to current buffer

  openfunc: CodePointer;

  

File open function

  inoutfunc: CodePointer;

  

File I/O function

  flushfunc: CodePointer;

  

I/O flush function

  closefunc: CodePointer;

  

File close function

  UserData: array [1..32] of Byte;

  

User data

  name: array [0..textrecnamelength-1] of TFileTextRecChar;

  

File name

  LineEnd: TLineEndStr;

  

Line ending to use

  buffer: TextBuf;

  

Default buffer

end;

Description

TextRec is the underlying type used in text files. It should be treated as opaque and never manipulated directly.

See also

FileRec

  

Untyped file type

Assign

  

Assign a name to a file

Reset

  

Open file for reading

Close

  

Close a file

Rewrite

  

Open file for writing


Documentation generated on: Sep 28 2017