ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. fileGetPos

Function

fileGetPos

Server and clientFilesIdentical to MTA:SA

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)

See also