In der Delphi Hilfe steht:
Delphi-Quellcode:
type TFileRec =
packed record
Handle: Integer;
Mode: Word;
//<----
Flags: Word;
case Byte
of
Wenn man dann weiter schaut, dann kommt man hierhin:
Zitat:
File mode constants are used to open and close disk files.
Unit
System
Category
file management routines
const fmClosed = $D7B0; // closed file
const fmInput = $D7B1; // reset file (TTextRec)
const fmOutput = $D7B2; // rewritten file (TTextRec)
const fmInOut = $D7B3; // reset or rewritten file (TFileRec)
const fmCRLF = $8 // DOS-style EoL and EoF markers (TTextRec)
const fmMask = $D7B3; // mask out fmCRLF flag (TTextRec)
Description
Use the file mode constants when opening and closing disk files.
The Mode field of TFileRec and TTextRec will contain one of these values.
Grüße
Klaus