Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----BFS API by elektrobom1/9551----
- 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]
- file.close()
- return out[line]
- end
- return {getLine = getLine}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement