title: Skip all leading empty lines in read.csv
body: <p>I am wishing to import csv files into R, with the first non empty line supplying the name of data frame columns. I know that you can supply the <code>skip = 0</code> argument to specify which line to read first. However, the row number of the first non empty line can change between files. </p>
  
  <p>How do I work out how many lines are empty, and dynamically skip them for each file?</p>
  
  <p>As pointed out in the comments, I need to clarify what "blank" means. My csv files look like:</p>
  
  <pre><code>,,,
  w,x,y,z
  a,b,5,c
  a,b,5,c
  a,b,5,c
  a,b,4,c
  a,b,4,c
  a,b,4,c
  </code></pre>
  
  <p>which means there are rows of commas at the start.</p>