Re: Writing binary files
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Writing binary files
- From: Kurt Jung <kurt.jung@...>
- Date: 2005年7月26日 13:03:30 -0400
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