title: C# read txt file and store the data in formatted array
body: <p>I have a text file which contains following</p>
  
  <pre><code>Name address phone        salary
  Jack Boston  923-433-666  10000
  </code></pre>
  
  <p>all the fields are delimited by the spaces.</p>
  
  <p>I am trying to write a C# program, this program should read a this text file and then store it in the formatted array.</p>
  
  <p>My Array is as follows:</p>
  
  <pre><code>address
  salary
  </code></pre>
  
  <p>When ever I am trying to look in google I get is how to read and write a text file in C#.</p>
  
  <p>Thank you very much for your time.</p>