Parameters
string
required
The file path, relative to the workspace folder.
Returns
string
The file contents.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read a file as a string.
readfile(path: string) -> string
local save = readfile("config.json")
| Message | Condition |
|---|---|
argument 1 must be a string path | Argument 1 was not a string. |
that path names a folder, not a file to read | The path was a folder. |
no file exists at that path | The file does not exist. |
the file could not be opened for reading | The file could not be opened. |