I have a txt file that is Tab Delimited, like this:
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
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.
I put the text file in an array with:
string [] source....
also to skip some header lines I don't need,
But now I'm stuck at how to go on.
I know about StreamReader and StreamWriter but I don't know how to use them to accomplish my task.
Any help would be kindly appreciated.
Thanks!
 
    