lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


for line in lines:gmatch"(.-)\n" do
io.write(">>", line, "<<\n")
end

However, this misses the last (partial) line in cases where 'lines'
does not end in a newline.

    -Mark