• Advertisement

Archived

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

Own file format

This topic is 5256 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

I haven´t yet understood how I can make my own file formats. I now I can just save some data in text format in a file but how about binary versions?

Share this post


Link to post
Share on other sites
Advertisement
add std::ios::binary to your file, as so:

file.open("filename", std::ios::binary);

presto.

~~~~~
"Go on then" - benjamin bunny.
Download and play Slime King I.


[edited by - dede on October 5, 2003 4:33:30 AM]

Share this post


Link to post
Share on other sites

  • Advertisement