How to take formatted input from ifstream
<p>I have a text file with a set of names formatted in the following way:</p>

<pre><code>"MARY","PATRICIA","LINDA","BARBARA","ELIZABETH"
</code></pre>

<p>and so on. I want to open the file using <em>ifstream</em> and read the names into a string array (without quotes, commas). I somehow managed to do it by checking the input stream character by character. Is there an easier way to take this formatted input?</p>

<p>EDIT: 
I heard that you can use something like 
fscanf (f, "\"%[a-zA-Z]\",", str);
in C, but is there such a method for ifstream?</p>
