title: Adding blank lines in between
body: <p>I have a function that exports a data table to a csv file. And there is a blank line added after every other line.</p>
  
  <h1>This is the output to a txt file</h1>
  
  <pre><code>Assets|Profit Center|Plant|Asset Class|Depr Account|Cost Center|Inventory Number|Location|Cap Date|Last Inventoried|Deactivation Date|Asset Description|Acquis Value|Monthly Depriciation|O dep posted|Accum Dep|Book Value|Serial|Inventory Note|Inventory Comments|LFAC|Room|Supplier Name|Manufacturer of Asset|EFO|Asset Main Text|EGM|Person Responsible|TOP Sider|Type Name &amp; Eccn Number|Std|Class|Inventory Status|Inventoried By|Prior Room|Comments
  
  1007309|DAHQ|DAHQ|32752|3375|DAHQB00760|QJQX0290E1|P229|3/25/1990|4/30/2013|0|CTC, West Wing Land Improvements|0| - |0| -   | -   |0|0|-|Thompson Jennifer|CTC|CTCWBLDG|X / X|0 / 0 / X / Huntzinger,Joe|LAND IMPROVEMENTS|-|-|-|0|3275|Land Improvements|NOT FOUND|||
  
  1007313|DAHQ|DAHQ|32752|3375|DAHQB00760|QJQX0890E1|P229|9/25/1990|4/30/2013|0|CTC, West Wing Land Improvements|0| - |0| -   | -   |0|0|-|Thompson Jennifer|CTC|CTCWBLDG|X / X|0 / 0 / X / Huntzinger,Joe|LAND IMPROVEMENTS|-|-|-|0|3275|Land Improvements|NOT FOUND|||
  </code></pre>
  
  <h1>Here is the code</h1>
  
  <pre><code>try
  {
    data.Tables[tableMaster].Columns.Remove("ID");
  }
  catch
  {
  }
  
  StringBuilder sb = new StringBuilder();
  IEnumerable&lt;string&gt; columnNames = data.Tables[tableMaster].Columns
      .Cast&lt;DataColumn&gt;()
      .Select(column =&gt; column.ColumnName);
  sb.AppendLine(string.Join("|", columnNames));
  
  foreach (DataRow row in data.Tables[tableMaster].Rows)
  {
    IEnumerable&lt;string&gt; fields = row.ItemArray.Select(field =&gt; field.ToString());
    sb.AppendLine(string.Join("|", fields));
  }
  File.WriteAllText("test.txt", sb.ToString());
  </code></pre>
  
  <p>How can I avoid the blank lines?</p>