-
Declaration:
- Procedure Truncate (Var F : file);
-
Description:
- Truncate truncates the (opened) file F at the current file position.
-
Errors:
- Depending on the state of the {$I} switch, a runtime error can be generated if there is an
error. In the {$I-} state, use IOResult to check for errors.
-
See also:
- Append (452), Filepos (494), Seek (563)
Listing: refex/ex71.pp