How to read / write a struct in Binary Files?
You should have a look at Boost Serialization. If you can’t use 3rd party libraries, you must know that C++ doesn’t support serialization directly. This means you’ll have to do it yourself. This article shows a nice way of serializing a custom object to the disk and retrieving it back. And this tutorial shows you … Read more