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

Function

fileGetPath

Server and clientFilesIdentical to MTA:SA

Returns the path of an open file (as given when opening it).

Syntax

string fileGetPath(file theFile)

Arguments

theFilefile
A file handle.

Returns

The path, or false.

Example

local file = fileCreate("out/report.txt")
outputDebugString(fileGetPath(file))
fileClose(file)

See also