- Documentation
- Shared functions
- fileGetPos
Function
fileGetPos
Returns the current position in the file (bytes from the start).
Syntax
int fileGetPos(file theFile)Arguments
theFilefile- A file handle.
Returns
The position, or false.
Example
local file = fileOpen("data.txt", true)
fileRead(file, 10)
outputDebugString(fileGetPos(file))
fileClose(file)