Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- arg[1] here is name of the file
- file = fs.open(arg[1]) -- file system. open
- repeat
- line = file.readLine()
- print(line)
- until line == nil
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement