Code snippets‎ > ‎Lua‎ > ‎

Files

fh,err = io.open(infile)
while line = fh:read() do
  print(line)
end

for line in fh:lines() do
  print(line)
end


Comments