Check if the file stores in little or big endian and therefore if we have to switch endianness.