lines = {} for line in io.lines() do table.insert(lines, line) -- add the line to the list of lines end