function read(path)
local t = {};
local f = io.open(path,"r");
if f then
for l in f:lines() do
l = string.gsub(l, "\r", "")
l = string.gsub(l, "\n", "")
table.insert(t,l)
end
f:close();
end
return t;
end
function main()
list = read("/var/touchelf/scripts/5.txt")
inputText(list[5]);--输出低5行
end
错了