[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: writing to binary files
- From: KHMan <keinhong@...>
- Date: Sat, 12 Apr 2008 22:45:15 +0800
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?
http://www.inf.puc-rio.br/~roberto/struct/
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia