Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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: Pointer;

  

File open function

  inoutfunc: Pointer;

  

File I/O function

  flushfunc: Pointer;

  

I/O flush function

  closefunc: Pointer;

  

File close function

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

  

User data

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

  

File name

  LineEnd: string;

  

Line ending to use

  buffer: TextBuf;

  

Default buffer

  FullName: Pointer;

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 29 2022