file = io.open("/var/touchelf/scripts/账号.txt","r") --打开一个文件,并返回句柄
team={}
local a=0
for l in file:lines() do
a=a+1
l= string.gsub(l,"\r","")
l= string.gsub(l,"\n","")
team[a]=l
end
file:close()
file3 = io.open("/var/touchelf/scripts/计数.txt","r");
if file then
zhn1 = file3:read()
file3:close();
zhn1 = tonumber(zhn1);
else
zhn1 = 1
end
for i = zhn1,#team do
account,password = 分割(team[i])
inputText(account)
inputText(password)
logfile = io.open("/var/touchelf/scripts/计数.txt","w")
logfile:write(i)
logfile:close()
end
file = io.open("/var/touchelf/scripts/账号.txt","r")
team={}
local a=0
for l in file:lines() do
a=a+1
l= string.gsub(l,"\r","")
l= string.gsub(l,"\n","")
team[a]=l
end
file:close()
file3 = io.open("/var/touchelf/scripts/计数.txt","r");
if file then
zhn1 = file3:read()
file3:close();
zhn1 = tonumber(zhn1);
else
zhn1 = 1
end
for i = zhn1,#team do
account,password = 分割(team[i])
inputText(account)
inputText(password)
logfile = io.open("/var/touchelf/scripts/计数.txt","w")
logfile:write(i+1)
logfile:close()
end