VINDICTA.TOP
Filesystem · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

readfile

Reads and returns the full contents of a file.

function readfile(pathpathstringPath to the file (relative to workspace).: string): stringstringThe file contents as a string.

Usage

Read a config file
local data = readfile("config.json")
print(data)