Skip to content

FileRec

Untyped file type

Declaration

Source position: filerec.inc line 32

Type
FileRec = record
public
  Handle : THandle;
  Mode : LongInt;
  RecSize : SizeInt;
  \_private : Array[1..3\*SizeOf(SizeInt)+5\*SizeOf(pointer)] of Byte;
  UserData : Array[1..32] of Byte;
  name : Array[0..filerecnamelength] of TFileTextRecChar;
  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
Assign Assign a name to a file
Close Close a file
LongInt A signed 32-bits integer
Reset Open file for reading
Rewrite Open file for writing
SizeInt Signed integer type which fits for sizes
TextRec Text file type
THandle Type alias.