lua-users home
lua-l archive

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


Actually, read("*l") does not handle binary data. We thoght that the 
concept of "line" itself does not make sense in a binary file (that's why 
the manual did not explicitly explain this "limitation"). To read binary 
data, you can use read('*all') (to read the whole file) or read(NUMBER), 
to read a fixed number of bytes. 

-- Roberto