Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs={...}
- if #tArgs<1 then
- printError("select file")
- return
- end
- for i=1, #tArgs do
- if fs.exists(tArgs[i]) then
- j=1
- for line in io.lines(tArgs[i]) do
- cond="false"
- if j>16 then
- os.pullEvent()
- cond="true"
- end
- print(line)
- j=j+1
- end
- else
- printError("file "..tArgs[i].." not found")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement