lua-users home
lua-l archive

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


> > An external library is needed if you want to write binary data, such as
> > numbers in their native format.
> 
>   Um ... can't string.pack() return a number in its native format as a
> string (a binary blob)?  And doesn't io.open() support the "b" mode? 
> Because it passes it directly to C's fopen()?  

That's what I meant. The io library cannot do it on its own. It was an
argument in favor of string.pack. Perhaps I misunderstood where this
thread was going. Anyway, it's clear now.