I try to write and read object of class into and from binary file in C++. I want to not write the data member individually but write the whole object at one time. For a simp
My C++ is pretty rust and highly under-tested, but you may want to take a look at Serialization and Unserialization. FAQ