title: Parsing CSV File with \" in C#
body: <p>I'm using VB's TextField in C# to parse a CSV file. But I am getting an error when it gets to \"</p>
  
  <pre><code>using (TextFieldParser csvReader = new TextFieldParser(csvFilePath)) {
      csvReader.SetDelimiters(new string[] { "," });
      csvReader.HasFieldsEnclosedInQuotes = true;
      string[] colFields = csvReader.ReadFields();
      foreach (string column in colFields)
      {
          DataColumn datacolumn = new DataColumn(column);
          datacolumn.AllowDBNull = true;
          csvData.Columns.Add(datacolumn);
      }
      while (!csvReader.EndOfData)
      {
          string[] fieldData = csvReader.ReadFields();
          for (int i = 0; i &lt; fieldData.Length; i++)
          {
              if (fieldData[i] == "")
              {
                  fieldData[i] = null;
              }
          }
          csvData.Rows.Add(fieldData);
      }
  }
  </code></pre>
  
  <p>And this is the line in the csv that is causing the error:</p>
  
  <pre><code>"101","Brake System","Level should be between \"MIN\" and \"MAX\" marks."
  </code></pre>
  
  <p>I don't know how to deal with the \" in C# using TextFieldParser</p>