lua-users home
lua-l archive

Re: Writing binary files

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


Keith Pimmel wrote:
> I'm trying to take tabular data from an ascii file and convert it
> into a MATLAB *.mat file. The one thing that I'm really struggling
> with is forcing the binary write mode to fit in the bytes.
Luiz Henrique has written a library which I believe does what you want.
See
 http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/lpack.tar.gz
The use of the io.open mode 'wb' is correct for your Windows
application, but only to prevent bytes that happen to be newlines from
being augmented with carriage returns.
--
Kurt Jung

AltStyle によって変換されたページ (->オリジナル) /