fileGetPath
Shared
Returns an open file's path.
string fileGetPath(file file)
Parameters
| Name | Type | Description |
|---|---|---|
| file | file | A file opened by fileOpen or fileCreate. |
Returns
The path in the form @resource/path.
Example
print(fileGetPath(file)) -- @myresource/logs/session.txt