io
v0.0.6print(value);
Printing utility, can take any lua type.
Arguments
value
The value to print to stdout print(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 file file = 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 file file = loadStrings("./your-file.txt");
print(file)