--获取已打开文件的倒数第n行字符串
local function getTail(file,num)
if(io.type(file)~='file') then
print('Error:'..tostring(file)..'is not a file,please check it')
return nil
end
local readbyte,offset,linenum,preline=512
lua获取文件倒数第n行的字符串
最新推荐文章于 2021-12-22 21:03:03 发布