this is my current read file code:
void Dictionary::processFile() {
ifstream fin;
fin.open("article.txt");
if (fin.fail( )) {
cout << "Input file opening failed.\n";
exit(1);
}
string word;
while (!fin.eof()) {
fin >> word;
cout << word << endl;
}
cout << endl;
fin.close();
}
How can I make my code ignore symbols(".';:! etc.) and only output/read words? at the moment it is reading every single symbol on the article. example "test.", "them,"