SpartaDOS X Reference Manual

Programming with SpartaDOS X




Get Current File Position — NOTE

Index


Purpose To determine the current position within a file.
 
Syntax

NOTE #IOCB, X, Y
POS=X+65536*Y
 

Remarks

This will return the relative current position within the currently open file; i. e., the offset into the current file. This will not return sector number and offset into the sector, regardless of disk format. The file must be opened for this operation.

For users of SpartaDOS 2.x and 3.x, you may be interested to learn that this method works with those versions. The XIO 38 command described in the SpartaDOS Construction Set manual will still work but is unnecessary.


Previous page

Next page