getline() carries '\n' from csv
<p>I'm trying to get data from a .csv file using getline, but it doesn't stop at the new line character. Code: </p>

<pre><code>while (file.good()) {
        getline(file, value, ',');
}
</code></pre>

<p>My .csv is in the following format:</p>

<pre><code>123 456
789 000
</code></pre>

<p>When getting data from the second column, getline returns <code>456\n789</code>. How to fix it?</p>