readfile
readfile
retrieves the contents of a file at the specified path and returns it as a string.
If the file does not exist or cannot be accessed, the function will error.
Parameters
Parameter | Description |
---|---|
path |
The file path to read from. |