File
file.read
Shared
Reads content of specified file
Syntax
local content = file.read(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to read |
Returns
| Type | Name | Description |
|---|---|---|
string / bool | content | Returns file's content on successful execution, or false on failure |
Examples
engine.print("File content:", file.read("files/images/test.png"))