No ... il problema non è chiaro ...

Nell'esempio che hai fatto hai 3 strutture ... cosa devi salvare su file?