// For C++
///// Write:
CFile file("data.txt", CFile::modeWrite);
CArchive ar(&file, CArchive::store);ar << row << col << mask << ... << strText;
ar.Close();
file.Close();///// Read:
CFile file("data.txt", CFile::modeRead);
CArchive ar(&file, CArchive::load);
ar >> row;
ar >> mask;
...
ar.Close();
file.Close();
///// 顺序要注意读写对应。