Howdy all,
I am having a problem accessing the values of a string[] array;
It generates an Index was outside the bounds of an array error on the line:Code://remove the leading spaces line = line.TrimStart(new char[] {' '}); //Console.WriteLine(line); //find the parts to the line.. line2 = line.Split(new char[] { ',' }); //we now have, the parts to the line.. left = line2[0].Split(new char[] { ' ' }); //get the right side.. right = line2[1];
Anyone know why?Code:right = line2[1];
Phreak




Reply With Quote