print(value);
Printing utility, can take any lua type.
Arguments
value
The value to print to stdoutprint(42);
print(1, 2, 3);
print('Hello world');
print({ 3, 8, 1 });
loadText(file_path);
Read a file as a string
Arguments
file_path
The path of the filefile = loadText("./your-file.txt");
print(file)
loadStrings(file_path);
Read a file as an array of strings split by line
Arguments
file_path
The path of the filefile = loadStrings("./your-file.txt");
print(file)