LOC()
Jump to navigation
Jump to search
Description
- Retrieves the current position of the file pointer for a file opened in Binary access mode. The current position of the pointer is used when writing to or reading from the file.
- See also SEEK.
Syntax
- loc(#handle)
Example
' Usage open "myfile.bin" for binary as #1 'get the current file-pointer position fpos = loc(#1) 'display the current file-pointer position PRINT "File Pointer is currently located at Position "; fpos 'close the file CLOSE #1
Useful Procedures
' Place a useful function or sub using this keyword here