title: Read values from file into multidimensionnal array
body: <p>I want to read files from an external datafile, stick them into an array to import to Unity3D.
  So I started this:</p>
  
  <pre><code>int [,] positionTab = new int[noLoc,3];
  
  StreamReader sr = new StreamReader(myTextFile);
  while((line = sr.ReadLine()) != null)//read line by line up to the end
  {
      if (line.Contains("confTrain1"))
      {
          locationTrain1 = RetrieveValueInDataFile.locationTrain(line);
      }
      else if (line.Contains("confTrain2"))
      {
          locationTrain2 = RetrieveValueInDataFile.locationTrain(line);
      }
      else 
      {
          distanceBetweenThem =RetrieveValueInDataFile.distBetweenTrain(line);
      }
  </code></pre>
  
  <p>I wonder to have something like :</p>
  
  <pre><code>int [,] locations = new int [noLoc, 3]
  {
  {locationTrain1, locationTrain2, distanceBetweenThem}
  {locationTrain1, locationTrain2, distanceBetweenThem}
  {etc}
  }
  </code></pre>
  
  <p>The problem is I have no idea how to do this in the StreamReader. I mean, how can I add the two locations and the distance (the syntax)?</p>