lua-users home
lua-l archive

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

yes, I wonder why it didn't work for me..   never mind :)

25.3.2004 kello 03:15, Taj Khattra kirjoitti:

 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