Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function getLine(file,line)
- local l = 1
- local out = {}
- local file = fs.open(file,"r")
- repeat
- out[l] = file.readLine()
- l = l + 1
- until not out[l-1]
- return out[line]
- end
- return { getLine = getLine }
Add Comment
Please, Sign In to add comment