How does one create their own file format in c++? I'm going to store some rather complex data for a game I am writing, and the .txt or .dat format is to convoluted and not exatly what I'm looking for.