EXT#
A function which returns the total length of the file whose file handle is its argument.
length=EXT#f_numIn the case of a sparse random-access file, the value returned is the complete file length from byte zero to the last byte written. This may well be greater than the actual amount of data in the file, but it is the amount of disk space allocated to the file by the Z88’s operating system.
The file must have been opened before EXT# can be used to find its length.
EXT#-1 returns an estimate of the amount of free memory in the Z88. See the Annex entitled ‘Format of Program and Variables in Memory’ for more details.
Free memory is available to the device :RAM.- and to applications (such as PipeDream), but not necessarily to the RAM filing system. Consequently, you cannot reliably use EXT#-1 to discover how much space is left in the current filing system device. (:RAM.0 for example).
Syntax
<n-var>=EXT#(<numeric>)Associated Keywords
OPENIN, OPENUP, OPENOUT, CLOSE#, PRINT#, INPUT#, BPUT#, BGET#, PTR#, EOF#