title: r read a line with quotation marks from a txt file
body: <p>This might be something easy but I am having issues with it.
  I want to read the first line of a long .txt file, the line is like this (but much longer):</p>
  
  <pre><code>"15075060" "15085030" "15085040"
  </code></pre>
  
  <p>and i want to save each of this elements as objects in a vector p, so the vector p should be:</p>
  
  <pre><code>&gt; p
  [1] "15075060" "15085030" "15085040"
  </code></pre>
  
  <p>I use the next code:</p>
  
  <pre><code>setwd("location of the file")                     
  fileName="name of the file"
  con=file(fileName,open="r")  
  line=readLines(con)   
  txt = line[[1]]
  newTxt &lt;- unlist(strsplit(txt, split = " ")) 
  nvar = length(newTxt)
  for (i in 1:nvar){ 
    p[i]=newTxt[i]
  }
  </code></pre>
  
  <p>and what i obtain is:</p>
  
  <pre><code>&gt; p
  [1] "\""         "15075060\"" "\""         "15085030\"" "\""         "15085040\""
  </code></pre>
  
  <p>there must be a very easy way to do this but i dont know it</p>