Advertisement
Semior001

cat lua

Jan 6th, 2020
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. -- arg[1] here is name of the file
  2. file = fs.open(arg[1]) -- file system. open
  3. repeat
  4.     line = file.readLine()
  5.     print(line)
  6. until line == nil
  7. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement