Remove single quotation character from string c++
<p>I have looked at various methods ranging from string.erase/ ispunct etc. and I cant simply get it working for my code.</p>

<p>My code is as follows:</p>

<pre><code>ifstream infilei("test.txt")

**Second part of code......**

while ( !infilei.eof() )
{
    string wordlist;
    infilei &gt;&gt; wordlist;
    inputlist.push_back(wordlist);
}
</code></pre>

<p>The text.txt contains commas, single quotation, double quotations etc. and I need to remove them.</p>

<p>Where <code>infilei &gt;&gt; wordlist;</code> is shown, I have tried to use a if statement to remove strings with '"' etc. but it still does not remove single or double quotation. Is there another way or can I set an string.erase for above a certain ascii range? And is the a way to also send string to lower case during push_back?</p>

<p>Thank you</p>
