File Io

Read file line by line

<p>The contents of file.txt are:</p> <pre><code>5 3 6 4 7 1 10 5 11 6 12 3 12 4 </code></pre> <p>Where <span class="inlinecode">5 3</span> is a coordinate pair. How do I process this data line by line in C++?</p> <p>I am able to get the first li