title: File Parsing where one column of an array needs to be converted to a different type
body: <p>Still learning and looking for a little guidance - I've got a CSV file that I'm reading into my program using a method with two foreach loops like so:</p>
  
  <pre><code>int i = 0;
  int j = 0;
  string File = File.ReadAllText("c:\\employees.txt");
  
  string[,] filesArray = new string[File.ReadLines("c:\\employees.txt").Count(), 4]; 
  
  foreach (string row in rawFile.Split('\n'))
  {
      foreach (string col in row.Trim().Split(','))
      {
          filesArray[i, j] = col;
          j++;
      }
      j = 0;
      i++;
  }
  return filesArray;
  </code></pre>
  
  <p>All well and good and I can dumbly display the text fine but the format of the CSV file is</p>
  
  <pre><code>Z0003, EmployeeNameHere, 00001
  </code></pre>
  
  <p>and I want to do some math and other calculations based on the values in filesArray[2, 0] and so on but I'm trying to find what would be best practice for this situation.</p>
  
  <p>I can think of ways that don't seem elegant and honestly it's been a bit of a mess trying to find the exact answer to this question through Google. I don't want to pick up bad habits at such an early stage!</p>