io

v0.0.6
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 });

loadText(file_path);

Read a file as a string

Arguments

file_pathThe 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_pathThe path of the file

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