title: Read data into a vector/scan with some limits [R]
body: <p>I have a txt file with this reputative structure:</p>
  
  <pre><code>“
  fileName1.doc  Author=Name
  fileName2.doc  Author=Name
  fileName2.doc  Author=Name
  “
  </code></pre>
  
  <p>How can I save only the filenames (first 9 characters) without the extension and the authors using scan?</p>
  
  <p>I used:</p>
  
  <pre><code>Fnames &lt;- scan("E:/myFiles.txt",character())
  </code></pre>