> What order does fwrite use when writing bytes, and does it depend on the endianness of the machine?
However they're stored in memory, so yes endian dependant.

Same for fread(). So usually...