void Admin::SeeAllGames() { Games blank; int c = 1; string Void; fstream to_handle("Games.dat", ios_base::in|ios_base::out|ios::binary); if (!to_handle) { cout << "Could not open file, press any key to exit:" << endl; fflush(stdin); getchar(); exit(1); } to_handle.seekg(0, ios::beg); while (to_handle.read(reinterpret_cast<char*>(&blank), sizeof(Games))) { Void = blank.getName(); if (Void!= "") { cout << blank; blank.Display(); cout << "at ID: " << c << endl; } c++; } to_handle.close(); }