Read a file one line at a time,
as opposed to reading the entire file at once.



Related tasks

 Read a file character by character
 Input loop.


filename = "input.txt"
fp = io.open( filename, "r" )
 
for line in fp:lines() do
    print( line )
end
 
fp:close()
 