title: Convert a Text File into a CSV File with C#
body: <p>I have a txt file that is Tab Delimited, like this:</p>
  
  <pre><code>Well       Name       Detector      Task    Quantity
  1          try1       Cam1          UNKN    0
  2          try2       Cam1          UNKN    0
  3          try3       Cam3          STND    1000
  4          try4       Cam5          UNKN    0
  5          try5       Cam6          UNKN    0
  6          try6       Cam6          UNKN    0
  ....
  92         try92      Cam4          STND    100
  </code></pre>
  
  <p>I need to output a CSV file from this TXT file.
  In the outputted CSV file I need to change the delimiter from Tab to semi-colon and I only need the first two columns.</p>
  
  <p>I put the text file in an array with:</p>
  
  <pre><code>string [] source....
  </code></pre>
  
  <p>also to skip some header lines I don't need,</p>
  
  <p>But now I'm stuck at how to go on.</p>
  
  <p>I know about StreamReader and StreamWriter but I don't know how to use them to accomplish my task.</p>
  
  <p>Any help would be kindly appreciated.</p>
  
  <p>Thanks!</p>