SpartaDOS X Reference Manual

Programming with SpartaDOS X




Get File Length

Index


Purpose To determine the length of the currently open file.
 
Syntax

XIO 39, #IOCB,aux1,aux2,"Dd:"
A=PEEK(844+IOCB*16)
B=PEEK(845+IOCB*16)
C=PEEK(846+IOCB*16)
LNGTH=A+B*256+C*65536
 

Remarks

This will return the length of the currently open file. IOCB, aux1, and aux2 should be the same values used when opening the file.


Previous page

Next page