How to show a very long data in console window in C++?
<p>I have a data file that contains more than 500 rows, but I can only able to read around 400 rows in console window. How am I gonna solve this? </p>

<p>This is my c++ programming code to read the data file.</p>

<pre><code>int main ()
{

int a,b,c,d,e,f ;

string line;


ifstream infile;

infile.open ("test1.cp");

if (!infile)
       cout&lt;&lt; "Error opening the file. \n";
else
{
while (!infile.eof())
  {      
       getline(infile, line);

       if (!(istringstream(line) &gt;&gt; a &gt;&gt; b &gt;&gt; c &gt;&gt; d &gt;&gt; e &gt;&gt; f))

            continue;

       cout &lt;&lt; a &lt;&lt; "\t" &lt;&lt; b &lt;&lt; "\t" &lt;&lt; c &lt;&lt; "\t" &lt;&lt; d &lt;&lt; "\t" &lt;&lt; e &lt;&lt;"\t" &lt;&lt; f &lt;&lt; endl;
  }
}
    infile.close ();

    getch ();
    return 0;
}
</code></pre>
