GEP-Assignment1/RankManager.cpp
void RankManager::setRankingsToFile(vector<Player*> *players, std::string filename) {
	ofstream stream;
	stream.open(filename);

	for (Player* p : *players)
	{
		stream << endl << p->getRankFileContent() << endl;
	}

	stream.close();
}
/* Given a vector of players, overrites the file specified by filename with player ranking details. */
Given a vector of players, overrites the file specified by filename with player ranking details.
Given a vector of players overrites the file specified by filename with player ranking details .
void RankManager::setRankingsToFile(vector<Player*> *players, std::string filename) {
	ofstream stream;
	stream.open(filename);
	for (Player* p : *players)
	{
		stream << endl << p->getRankFileContent() << endl;
	}
	stream.close();
}
void RankManager :: setRankingsToFile ( vector < Player * > * players , std :: string filename ) { ofstream stream ; stream . open ( filename ) ; for ( Player * p : * players ) { stream << endl << p -> getRankFileContent ( ) << endl ; } stream . close ( ) ; }
Given a vector of players, overrites the file specified by filename with player ranking details.
Given a vector of players overrites the file specified by filename with player ranking details .