Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if not args[1] then
- print("Usage: cat [file]")
- return
- end
- local f
- for i = 1, #args do
- f = fs.open(args[1], "r") or error("Error while opening file!")
- print(f.readAll())
- f.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment