lua-users home
lua-l archive

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


> > l={}
> > for line in io.lines("table.txt") do
> >>   l[#l+1] = line
> >> end

I'd go for
	local f=assert(io.open("table.txt")
	local s=f:read("*a"):gsub("\n",",")
	f:close()