title: How to extract the first line from a text file?
body: <p>I have a text file that I read like this:</p>
  
  <pre><code>file=read.table("file.txt",skip="1",sep="")
  </code></pre>
  
  <p>The first line of this text file contains information about the file then it is followed by the observations.</p>
  
  <p>I want to extract the first line and write it out to a new text file.</p>