lua-users home
lua-l archive

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


> It would possibly be logical to add file handle as well. This would be 
> especially nice when using io.popen(), that is when there is no 
> filename to begin with.  Just an idea. :)

do you mean like this ?

p = io.popen('echo purple; echo haze')
for line in p:lines() do print(line) end
p:close()