lua-users home
lua-l archive

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

On 9/4/2010 2:35 PM, Vaughan McAlley wrote:
On 4 September 2010 23:15, Patrick Mc(avery
<>  wrote:
bin_all = bin:read("*all")

This should be
bin_all = bin:read("*a")

"*all" probably triggers one line's worth instead of the whole file

No, "*a" is just an abbreviated form of "*all" so it works as intended. Similarly, "*l" is a shortened "*line". For that matter, you can also use "*abraham" and "*lincoln" to the same effect.

- tom