Использовать сереализацию можно так:
// запись в файл
CFile file;
file.Open("D:\\somefile.file", CFile::modeWrite|CFile::modeCreate);
CArchive ar(&file, CArchive::store);
ar << "String 1";
ar << "String 2";
ar << (int)2;
ar << (long)1000;
ar.Write(&struct);
ar.Close(); // закрыть архив
file.Close(); // закрыть файл
// чтение из файла
CString s;
int n;
long L;
Some_Struct struct;
file.Open("D:\\somefile.file",CFile::modeRead);
CArchive ar(&file, CArchive::load);
ar >> s; // в 's' будет загружено "String 1"
ar >> s; // в 's' будет загружено "String 2"
ar >> n; // n=2
ar >> L; // L=1000
ar.Read(&struct);
ar.Close();
file.Close();