lua-users home
lua-l archive

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

Merick wrote:
> [snip]
> FB will read from the file the number of bytes that will fit into FB's
> integer data type. What I'd like to do is use a lua script to write data
> to a file so that it can later be retrieved by FB's get, but in my tests
> I've found that just opening a file as "wb" isn't enough - lua will
> still write the data as ascii text and using get on the file returns bad
> numbers. Anyone have any ideas on how to convert numbers before writing
> it in order to make this work?

Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia