I need to get the contents of a file line by line because i am trying to create an open printer program but I'm not sure what to do.
I have tried:
while not (file:read("*l") == nil) do
openprinter.writeln(file:read("*l"))
end
But the file:read("*l") on the second line returned nil.
Any suggestions?