title: Looping through fields in TextFieldParser in c#
body: <p>I am using TextFielParse to parse through a CSV file with 10 columns and 100 rows. 
  I am interested in first and 3rd column of each row. 
  How do I skip once the 3rd column is processed and move to the next row to process?
  Currently it is going through all the 10 columns</p>
  
  <pre><code>using (TextFieldParser parser = new TextFieldParser(@"c:\20140513_134709.csv"))
              {
                  parser.TextFieldType = FieldType.Delimited;
                  parser.SetDelimiters(",");
  
                  parser.ReadLine();
  
                  int regSeqNo = 0;
                  bool isNumerical = false;
                  string mailDate = string.Empty;
                  while (!parser.EndOfData)
                  {
                      //Processing row
                      string[] fields = parser.ReadFields();
  
                      foreach (string field in fields)
                      {
  
  
                           isNumerical = int.TryParse(fields[0].ToString(), out regSeqNo);
                           mailDate = fields[2].ToString();
                          continue;
  
                      }
                  }
              }
  </code></pre>