title: How to insert a titles row into a csv file
body: <p>I have a .csv file which has data but not the column headers. I can able to create new .csv file with oldcsv file's content. But I need to add column headers in first row and from second row the existing data should appear.</p>
  
  <p>Here is the code I have written:</p>
  
  <pre><code> Dim ioFile As New System.IO.StreamReader("C:\sample.csv")      
   Dim ioLine As String      Dim ioLines As String      
   ioLine = ioFile.ReadLine     
   ioLines = ioLine     
   While Not ioLine = ""         
      ioLine = ioFile.ReadLine         
      ioLines = ioLines &amp; vbCrLf &amp; ioLine      
   End While     
   Dim ioWriter As New System.IO.StreamWriter("C:\new.csv")     
   ioWriter.WriteLine(ioLines)     
   ioFile.Close()     
   ioWriter.Close() 
  </code></pre>
  
  <p>Now i need to add column headers in new.csv as "ID","Name","Number","Amount"</p>