title: TextFieldParser ignoring header row C#
body: <p>Reading in CSV files and the TextFieldParser skips the header row.</p>
  
  <p>Any idea how to make certain the first row is skipped.</p>
  
  <pre><code>String[] Col3Value = new string[40];
  TextFieldParser textFieldParser = new TextFieldParser(File1);
  textFieldParser.TextFieldType = FieldType.Delimited;
  textFieldParser.SetDelimiters(",");
  {
      {
          string FileName = this.Variables.FileName.ToString();
          {
              while (!textFieldParser.EndOfData)         
              {
                  File1OutputBuffer.AddRow();
  
                 string[] values = textFieldParser.ReadFields();
  
                 for (int i = 0; i &lt;= values.Length - 1; i++)
                 {
                     Col3Value[i] = values[i];
  
                     File1OutputBuffer.Column1 = Col3Value[0];
                     File1OutputBuffer.Column2 = Col3Value[1];
                 }
             }
         }
     }
     textFieldParser.Close();
  }
  </code></pre>