reading .txt file's 2nd line and write to another .txt file - C++
<p>I have 79 <code>.txt</code> files like this:</p>

<pre><code>iRun iDate showerEnergy thetaRad phiRad totalShowers totalParticles  e+ e- μ+ μ-
4001 121125 5e+07 1.61401 0.00118607 1 9929166 6909475 1271116 1399686 151330 148624
-1 4001 121125 5e+07 1.61401 0.00118607 2 9929167 6909475 1271116 1399686 151330 148624
</code></pre>

<p>it has just 3 lines, 1st the <code>iRun iDate</code> on this line and 2nd is starting with <code>4001</code> and 3rd starting with <code>-1</code>. And I just want to read these text files' 2nd lines. Also I want to  write all 79 text files' 2nd lines in a text file if I read them clearly.</p>