post the structure or class Partita. We have no clue what you are talking about without that information.
If that structure contains pointers, then you have to write out their values separately, and you will have to design the file format in such a way that the Partita structure and values of all pointers can be read back.