On Wed, 16 Jul 2003 02:32:49 GMT, James Leddy <iustitiaoptonline.net>
[snip]> I run an intel i686 processor.
> I just wanted to know weather it mattered because of endian how I put
> in a file.
It matters for the same reasons and under the same cirstances as it
matters when you're passing data over a network. Namely:
1. Never for characters, but always for binary data that's more than a
2. Never when you're internal to a machine, but possibly (which means you
have to account for it) when going between machines.
So... feel free to write binary data however you like if the binary file
stays within a machine, or another machine with the same hardware. But,
take endian into account if you're writing a binary file that's supposed to
For this reason, binary interchange formats like, say, TIFF, record the
endian state in the file, and the reading program must take it into
Or... use a 100% character based format, like, say, XML, and the problem