title: Converting Excel File From .csv To .xlsx
body: <p>I want my application to go and find a <a href="/questions/tagged/csv" class="post-tag" title="show questions tagged &#39;csv&#39;" rel="tag">csv</a> excel file and convert it into a .xlsx file instead.</p>
  
  <p>Here's what I'm currently doing;</p>
  
  <pre><code>var fileName = @"Z:\0328\orders\PurchaseOrder.csv";
  FileInfo f = new FileInfo(fileName);
  f.MoveTo(Path.ChangeExtension(fileName, ".xlsx"));
  var Newfile = @"Z:\0328\orders\PurchaseOrder.xlsx";
  </code></pre>
  
  <p>Now this <strong>does work</strong>. It changes the file extension to my desired format. However, the file then become 'corrupt' or at least Excel refuses to open it and neither will my application when I try to venture further.</p>
  
  <p>Does anyone have a solution/work-around?</p>