title: Read csv file in R
body: <p>I am trying to read a .csv file in R. 
  My file looks like this-</p>
  
  <pre><code>A,B,C,D,E
  
  1,2,3,4,5
  
  6,7,8,9,10
  
  .
  
  .
  
  .
  </code></pre>
  
  <p>number of rows.</p>
  
  <p>All are strings. First line is the header.</p>
  
  <p>I am trying to read the file using-</p>
  
  <pre><code>mydata=read.csv("devices.csv",sep=",",header = TRUE)
  </code></pre>
  
  <p>But mydata is assigned X observations of 1 variable. Where  X is number of rows. The whole row becomes a single column.
  But I want every header field in different column. I am not able to understand the problem.</p>