raluca mindrut

raluca mindrut

  • NA
  • 8
  • 3.9k

split and parse

Apr 25 2014 1:06 PM
private void Form5_Load(object sender, EventArgs e)
{
dataGridView1.DataSource = null;
StreamReader str = new StreamReader("raluca.txt");
List<clasa> PLAYERS= new List<clasa>();
while (!str.EndOfStream)
{
string linie = str.ReadLine();
string[] split = linie.Split(' ');
PLAYERS.Add(new clasa(split[0], split[1], Int32.Parse(split[2])));  <<<<<<<<<<<<<<<<<<<<<<<<<<<<- HERE?!?!?!?!?
}
 can you please tell me wat is the problem?