io

v0.1.7
print(value);

Printing utility, can take any lua type.

Arguments

valueThe value to print to stdout

print(42);

print(1, 2, 3);

print('Hello world');

print({ 3, 8, 1 });
See print in io.h
loadText(file_path);

Read a file as a string.

Arguments

file_pathThe path of the file

file = loadText("./your-file.txt");
print(file);

Output

See loadText in io.h
loadStrings(file_path);

Read a file as an array of strings split by line.

Arguments

file_pathThe path of the file

file = loadStrings("./your-file.txt");
print(file);

Output

See loadStrings in io.h