123456789
struct aStrct{ int number; }vars[]; while(file.good()) file.read((char*)&vars, sizeof(aStrct))
1234567
while(file.good()) file.read((char*)&vars[i], sizeof(aStrct)) i++;