title: R readLines read only last line of a file
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5596107/reading-the-last-n-lines-from-a-huge-text-file">Reading the last n lines from a huge text file</a>  </p>
  </blockquote>
  
  
  
  <p>I have created a connection to a file using </p>
  
  <pre><code>con=file(path_of_myfile)
  </code></pre>
  
  <p>Now I want to read only the last line without loading everything (it is a HUGE file).</p>
  
  <p>I am trying to use </p>
  
  <pre><code>?readLines
  </code></pre>
  
  <p>with no success.</p>
  
  <p>Any idea?</p>