[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing binary files is not working properly
From: |
Geraint Paul Bevan |
Subject: |
Re: Writing binary files is not working properly |
Date: |
Sat, 25 Oct 2003 18:11:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
-----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
-------------------------------------------------------------