Reading only SPECIFIC range of lines in a text file C++
<p>Hi I have a text file which contains some numerical data. Of that text file <strong><em>ONLY</em></strong> the lines 
14 to 100 have to be read into my C++ program. Each of these lines contain three numbers corresponding to x,y,z coordinates of a point. Thus, coordinates are given for 87 points in all. </p>

<p>I want to put these numbers into the arrays <code>xp[87] yp[87] and zp[87].</code> </p>

<p>How do I perform this? </p>

<p>Uptil now I have been used to the following </p>

<pre><code>ifstream readin(argv[1])//Name of the text file 

for (int i=0; i&lt;=86; ++i)
{
readin&gt;&gt;xp[i]&gt;&gt;yp[i]&gt;&gt;zp[i];
}
</code></pre>

<p>But this technique works only for those files which contain 87 lines and the data to be read <strong><em>starts</em></strong> from the first line itself. </p>

<p>In the present case I want to ignore ALL lines before line 14 and ALL lines after line 100</p>
