How would I modify this method so I can reference or pass the data of each individual loop?
<p>I'm wondering how to go about referencing each loop of data so that I can pass it to a textbox.
If there are 5 loops, how can I choose ONLY the 3rd loop to display in a textbox on my main form?
I've added m_intNumberofEvents to count the number of loops it does but I don't know how to connect it or if it even works. Please help! Thank you!</p>

<pre><code>public List&lt;Event&gt; ExtractData(DateTime dtmDay)
{
     int intChosenDay = dtmDay.Day;
     m_intNumberofEvents = 0;
     int intFileDay;

     StreamReader textIn = new StreamReader(
         new FileStream(path, FileMode.OpenOrCreate, FileAccess.Read));

     //create the list
     List&lt;Event&gt; events = new List&lt;Event&gt;();

     string[] lines = File.ReadAllLines(path);

     for (int index = 4; index &lt; lines.Length; index += 5)
     {
        Event special = new Event();
        special.Day = Convert.ToInt32(lines[index - 4]);
        special.Time = (lines[index - 3]);
        special.Price = Convert.ToDouble(lines[index - 2]);
        special.StrEvent = lines[index - 1];
        special.Description = lines[index];
        events.Add(special);
        m_intNumberofEvents++;
     }
     textIn.Close();
     return events;
  }
</code></pre>
