Liberty BASIC Help Online

LOC( #h )
LOC( #handle )
 
Description:
The LOC( #handle ) function retrieves the current position of the file pointer when a file whose handle is specified has been opened for BINARY access.  The current position of the file pointer is used when reading or writing data to a binary file.  See also: SEEK
 
Usage:
 
open "myfile.ext" for binary as #handle
 
'get the current file position
fpos = loc(#handle)


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/