System.FileSize
Original Reporter info from Mantis: MarkMLl @MarkMLl
-
Reporter name: Mark Morgan Lloyd
Original Reporter info from Mantis: MarkMLl @MarkMLl
- Reporter name: Mark Morgan Lloyd
Description:
"Filesize returns the total number of records in file F. It cannot be invoked with a file of type Text. (under linux and unix, this also means that it cannot be invoked on pipes). If F is empty, 0 is returned."
It also returns zero if the file is untyped, i.e. hasn't been declared with "of byte" etc.
Might also apply to other low-level function (e.g. FilePos) so a generic warning somewhere that untyped files don't default to a 1-byte record size might be in order.
Mantis conversion info:
- Mantis ID: 25288
- Fixed in version: 3.0.0
- Fixed in revision: 1033 (#ec73a1aa)