Przeczytaj obiekty do pliku CPP
ifstream file_w ("obj.txt");
file_w.read((char *)&(object_name), sizeof(object_name));
cout<< "successfully written in file\n";
file_w.close();
Sleep deprived