• Advertisement

Archived

This topic is now archived and is closed to further replies.

iostreams and endianness

This topic is 5641 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is iostream portable in endiannes way? If I use ostream to write binary file is output big- or little-endian or does it depend of machine? ----------- RacingTreme - for fun multiplayer racing: http://users.utu.fi/stkibr Coming soon...

Share this post


Link to post
Share on other sites
Advertisement
If you use formatted I/O it doesn''t matter, as it writes a text representation.

If you use unformatted I/O the endianness will depend on the machine.

Share this post


Link to post
Share on other sites

  • Advertisement