file.file.get_line
Declaration
lua
file.get_line(path, n)
Description
Get specific line from file.
Parameters
`path` (string), `n` (number) — line number (1-based, negative = from end)
Return Values
`string` or `nil`
Example
lua
local first = file.get_line("data.txt", 1)
local last = file.get_line("data.txt", -1)