Skip to content

FileRec

Untyped file type.

Declaration

Source position: filerec.inc line 32

type
  FileRec = record
    Handle: THandle = LongInt;
    Mode: LongInt;
    RecSize: SizeInt = Int64;
    _private: Array[1..3*SizeOf(SizeInt)+SizeOf(pointer)+4*SizeOf(codepointer)] of Byte;
    UserData: Array[1..32] of Byte;
    name: Array[0..filerecnamelength] of TFileTextRecChar = UnicodeChar;
    FullName: Pointer;
  end;

Description

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

See also

Name Description
TextRec Text file type.
Assign Assign a name to a file.
Reset Open file for reading.
Close Close a file.
Rewrite Open file for writing.