title: Saving DataTable to Text File Produces Blank Text File
body: <p>I'm using the following code to write data from datatable to a text file.
  The text file is created,but its blank.</p>
  
  <pre><code>StreamWriter sw = File.CreateText("myfile.txt");
  foreach (DataRow row in filteredResults.Rows)
  {
  sw.WriteLine(row["columnname"].ToString());
  }
  </code></pre>
  
  <p>What am i doing wrong?</p>