help-octave
[Top][All Lists]
Advanced

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

Re: Writing binary files is not working properly


From: robert Macy
Subject: Re: Writing binary files is not working properly
Date: Sat, 25 Oct 2003 16:22:37 -0700

I don't think a "conversion" utility will be effective in
this case.  

As I said, simply replacing 0D 0A with 0A works some times,
but sometimes the DATA has a valid 0D 0A series which
imappropriately changing that sequence really screws the
file up.  

             - Robert -

On Sat, 25 Oct 2003 18:11:05 +0100
 Geraint Paul Bevan <address@hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> robert Macy wrote:
> 
> | In other words, fwrite(fid,sig,'ushort'); is adding a
> | "carriage return" everytime the data has "new line"
> |
> 
> Looks like your problem could be due to the way various
> operating
> systems mark the end of lines in text files
> 
> unix: linefeed
> max:  carriage return
> dos:  carriage return and linefeed
> 
> There are utilities available that can convert files from
> one form to
> the other: http://www.google.com/search?q=dos2unix
> 
> - --
> Geraint Bevan
> http://homepage.ntlworld.com/geraint.bevan
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org
> 
>
iEYEARECAAYFAj+arp4ACgkQcXV3N50QmNOwzwCgh1oI4PYc0sSWzNAzoe9Lr6Gj
> ghQAn0qIv9NHrd/vf8NmW1LYGzzRSHfj
> =vHFB
> -----END PGP SIGNATURE-----
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]