- Documentation
- Shared functions
- fileGetPath
Function
fileGetPath
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)