Parsing tab separated data
<p>I have a text file (~10GB) with the following format:</p>

<pre><code>data1&lt;TAB&gt;data2&lt;TAB&gt;data3&lt;TAB&gt;data4&lt;NEWLINE&gt;
</code></pre>

<p>I want to scan through it and do processing only on <code>data2</code>. What is the best (fastest) way to extract <code>data2</code> in C++.</p>

<p>EDIT: Added NEWLINE</p>
