使用CArchive来保存数据文件,如果在linux下用C++怎么解析?比如在windows下用CArchive保存数据:
CFile f;
CMapStringToString map; // 字段值
int nValue = 100;
f.Open("test.txt", CFile::modeCreate|CFile::modeReadWrite);CArchive arStore(&f,CArchive::store);
map.SetAt("field1","202");
map.SetAt("field2", "11001");
map.SetAt("field3", "1");arStore<<nValue;
map.Serialize(arStore);arStore.Flush();arStore.Close();怎么在非MFC的环境下把text的文件解析出来呢?