R script for extracting rows from several text files
<p>I have 900 text files in my directory as seen in the following figure below </p>

<p><a href="https://i.stack.imgur.com/S72np.png" rel="nofollow"><img src="https://i.stack.imgur.com/S72np.png" alt="enter image description here"></a></p>

<p>each file consists of data in the following format</p>

<pre><code>667869 667869.000000 
580083 580083.000000 
316133 316133.000000 
11065 11065.000000 
</code></pre>

<p>I would like to extract fourth row from each text file and store the values in an array, any suggestions are welcome</p>