Fix PC halt vs. LuaPlugin print
[jpcrr.git] / lua / testfile.lua
blob0b28b9103d6e3c475fd74c80669e83a4f68e13ae
1 file, err = io.open_read("testfile");
2 if not file then
3 error("Error opening file: " .. err);
4 end
6 content, err = file:read();
7 file:close();
9 if not content then
10 error("Error reading file: " .. err);
11 end
13 print("Aount read: " .. #content);