9551

Untitled

Jun 22nd, 2021 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. local function getLine(file,line)
  2. local l = 1
  3. local out = {}
  4. local file = fs.open(file,"r")
  5. repeat
  6. out[l] = file.readLine()
  7. l = l + 1
  8. until not out[l-1]
  9. return out[line]
  10. end
  11.  
  12. return { getLine = getLine }
Add Comment
Please, Sign In to add comment