How do you make a save file for a game written in c++?

Started by Georgi, November 17, 2016, 07:04:54 PM

Previous topic - Next topic

Omar

Hello, I would like to ask you a big problem, I would like to know, how do you make a save file for a game written in c++? Thank you very much for helping me quickly because I'm stressed.

Damian

You need use serialization to save your variables in memory to your hard drive. There are many types of serialization, in .NET XML is a common format, though there are binary and JSON serializers available.