title: how to get text file rows with no delimiter into array
body: <p>I have a text file that I'm trying to input into an array called columns.
  Each row in the text file belongs to a different attribute in a sub-class I have created.</p>
  
  <p>For example, row 2 in my text file is a date that I would like to pass over...I do not want to use the Split because I do not have a delimiter but I do not know an alternative. I am not fully understanding the below if someone could help. When I try to run it, it says that columns[1] is out of its range...Thank you.</p>
  
  <pre><code>StreamReader textIn = 
      new StreamReader(
      new FileStream(path, FileMode.OpenOrCreate, FileAccess.Read));
  
  //create the list
  List&lt;Event&gt; events = new List&lt;Event&gt;();
  
  while (textIn.Peek() != -1)
  {
      string row = textIn.ReadLine();
      string[] columns = row.Split(' ');
      Event special = new Event();
      special.Day = Convert.ToInt32(columns[0]);
      special.Time = Convert.ToDateTime(columns[1]);
      special.Price = Convert.ToDouble(columns[2]);
      special.StrEvent = columns[3];
      special.Description = columns[4];
      events.Add(special);
  }
  </code></pre>
  
  <p>Input file sample:</p>
  
  <pre>
  1 
  8:00 PM 
  25.00 
  Beethoven's 9th Symphony 
  Listen to the ninth and final masterpiece by Ludwig van Beethoven. 
  2 
  6:00 PM 
  15.00 
  Baseball Game 
  Come watch the championship team play their archrival--No work stoppages, guaranteed.
  </pre>