lua-users home
lua-l archive

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


To my slight surprise I find that the script
============
#! lua
n = 1
for line in io.lines(arg[1]) do
    print(n,line)
    n = n + 1
end -- for
============
does not print any part of
a line beginning with an ASCII nul.
Is it supposed to?

-- 
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/