2
I have a file that I just want to read some lines, not all lines. I get the lines I want to read, which are numbers. I can only read the entire file.
local inicio = GET["inicio"]
local fim = GET["fim"]
local f = io.open(ficheiro, "r" ) --ler ficheiro
for line in f:lines() do --correr lignas
--insert table
table.insert(dat_array, line)
end
For example if the beginning is 2 and the end 6, read in the cycle is just these lines.