Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function cat(path)
- local file = fs.open(shell.resolve(path), "r")
- local line = file.readLine()
- while line do
- print(line)
- line = file.readLine()
- end
- file.close()
- end
- for i = 1, select("#", ...) do
- cat(select(i, ...))
- end
Add Comment
Please, Sign In to add comment