My code:
Code:
file_.open("D:/ТУРИСТ.dat",ios::binary | ios::in);
file_.seekg(0l,ios::end);
pos=file_.tellg();
nused=pos/sizeof(danni);
for (int z(0);z<nused;z++)
{file_.read((char*)&masiv[z],sizeof(masiv[z]));}
and i'd like to fill it with all the info from the ТУРИСТ file
Suggestions why its not working?






