FPOS
Syntax |
FPOS [(#channel)] |
Location |
Toolkit II, THOR XVI, BTool |
This function returns the current position of the file pointer.
The relevant file must already be open as #channel, default channel is #3. A value of zero means that the file pointer is at the very beginning of a file, whereas a position equivalent to the file length means that it points to the very end. The file pointer is a means by which the QL can keep track of exactly whereabouts in a file it should take the next input from, or write to.
CROSS-REFERENCE
FILE_POS works exactly as FPOS but does not use a default channel. FILE_PTRA and FILE_PTRR move the file pointer, which may also be set with GET, PUT, BGET and BPUT.