How to read in points from a file
<p>I am reading in a file of the format:</p>

<pre><code>12, 10
15, 20
2, 10000
</code></pre>

<p>I want to read these in as x,y points.  I've started out, but I'm not sure where to proceed from here... Here is what I have so far:</p>

<pre><code>ifstream input("points.txt");
string line_data;

while (getline(input, line_data))
{
    int d;
    std::cout &lt;&lt; line_data &lt;&lt; std::endl;
    stringstream line_stream(line_data);
    while (line_stream &gt;&gt; d)
    {
        std::cout &lt;&lt; d &lt;&lt; std::endl;
    }
}
</code></pre>

<p>How can I read each of these lines in as an x,y integer?</p>
