Returning the current position of a sequential file¶
tell() |
Return the current position of a sequential file |
SYNTAX
tell(channel)
Returns the current position of the sequential file open on channel, relative to the start of the file. Position starts from 0.
This function returns an integer type.
NOTES
The commands seek #, wind #, rewind #, frewind and fseek are available to alter the position of a sequential file.
EXAMPLES
int1 = tell(channel1)
int2 = tell(4)
RELATED TOPICS |