title: Write to CSV file using CsvHelper in C#
body: <p>I tried to write to CSV file using CsvHelper in C#.
  This is the link to the library <a href="http://joshclose.github.io/CsvHelper/" rel="nofollow noreferrer">http://joshclose.github.io/CsvHelper/</a>
  Nothing is sent to the csv file. I tried doing "<code>exportCsv.WriteField("Hello");</code>" but still nothing happened.</p>
  
  <pre><code>List&lt;string&gt; ColumnOne = new List&lt;string&gt;();
  List&lt;string&gt; ColumnTwo = new List&lt;string&gt;();
  var csvTextWriter = new 
      StreamWriter(@"C:\Users\Public\Documents\ExportTest.csv");
  var exportCsv = new CsvWriter(csvTextWriter);
      //creating a list to store workflows then adding name and description to the myWorkflowsList list
     if (myWorkflows.WorkFlowCollection.Any())
     {
          foreach (var Workflow in myWorkflows.WorkFlowCollection)
          {
                      ColumnOne.Add(Workflow.WorkflowName);
                      ColumnTwo.Add(Workflow.WorkflowDescription);
          }
          exportCsv.WriteField(ColumnOne);
          //exportCsv.WriteField(ColumnTwo);
          exportCsv.NextRecord();
          exportCsv.Flush();
          Console.WriteLine("File is saved: 
                  C:\\Users\\Public\\Documents\\ExportTest.csv");
          Console.ReadLine();
      }
  </code></pre>