My current code for reading the file onto memory is:
string currentWord = "";
vector <string> wordsDB_mem;
while(!wordsDB.eof())
{
getline(wordsDB, currentWord);
wordsDB_mem.push_back(currentWord);
}
It is taking too long. Is there a more efficient approach to my problem?

New Topic/Question
Reply



MultiQuote








|