I have made a new class in a C++ and I want to store it in a file. But the problem here is that i have made many such similar classes and it is time consuming to code the in