Read data stored with CArchive Ar(&SaveDataStoreDetail, CArchive::store);

219 Views Asked by At

i have dat file which stored value using

Ar<<sDmdDataStore.iMachineNo;
Ar<<sDmdDataStore.csOptName;
Ar<<sDmdDataStore.csLocationofStone;

how to read data back from this file

1

There are 1 best solutions below

5
Jabberwocky On BEST ANSWER

Roughly like that:

CArchive Ar(&SaveDataStoreDetail, CArchive::load);
...
Ar>>sDmdDataStore.iMachineNo;
Ar>>sDmdDataStore.csOptName;
Ar>>sDmdDataStore.csLocationofStone;