Mothback/data/scripts/in_out.lua

9 lines
145 B
Lua
Raw Normal View History

2021-10-16 23:06:11 +00:00
function getInput(filename)
local file = io.open(filename, "r")
io.input(file)
local content = io.read()
io.close(file)
return content
end