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

  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: Jul 24 2023