title: IndexOutOfRangeException was unhandled
body: <p>I'm getting an error <code>IndexOutOfRangeException was unhandled</code> at the line <code>int euros = int.Parse(values[1])</code>. </p>
  
  <p>My .csv file looks:</p>
  
  <pre><code>name,   1,  2
  name1,  3,  4
  name2,  5,  6
  </code></pre>
  
  <hr>
  
  <pre><code> public static void ReadData(out Turistai[] tourists, out int amount)
      {
          amount = 0;
          tourists = new Turistai[MaxTourists];
          using (StreamReader reader = new StreamReader("C:\\Users\\Andrius\\Desktop\\Mokslams\\C#\\Pratybos\\P2\\P2.1\\turistai.csv"))
          {
              string line = null;
              while( (line = reader.ReadLine()) != null) 
              {
                  string[] values = line.Split(';');
  
                  string name = values[0];
                  int euros = int.Parse(values[1]);
                  int cents = int.Parse(values[2]);
                  Console.WriteLine(euros);
                  //Turistai tourists = new Turistai(name, euros, cents);
                  amount++;
              }
          }
      }
  </code></pre>