i want to read words form a text file and remove the comars and fullstops and then put the single word to a vector. but when i try the method below i get an error can some one please help me.
char delim[100]=",.`~!@#$%^&*()_+=-{}][:';?><|";
ifstream fileOne("file.txt");
string fileWord;
while ( fileOne>> fileWord )
{
for(unsigned int a=0; fileWord.size ();a++)
{
for(unsigned int b=0;b<100;b++)
{
if (delim[b]=fileWord[b])
fileWord.erase)(i);
}
}
fileOneVector.push_back( fileWord);
}