title: C# loading listView subItems from file using StreamReader
body: <p>I need some help with loading text file into a listView. Text file looks like this:</p>
  
  <p>1,6 sec,5 sec,1 sec,17,<br />
  2,6 sec,4 sec,2 sec,33,<br />
  3,7 sec,5 sec,3 sec,44,<br /></p>
  
  <p>I have to load this into a listView control and every subitem should be separated by comma (or any other character). I tried something like this:</p>
  
  <pre><code>using (var sr = new StreamReader(file))
  {
     string fileLine = sr.ReadLine();
     foreach (string piece in fileLine.Split(',')) 
     {     
        listView1.Items.Add(piece); 
     } 
     sr.Close(); 
  }
  </code></pre>
  
  <p>it would work just fine apart from only first line is loaded to the first column in listview. I cannot figure it out.</p>
  
  <p>Thanks for your time!
  KR!</p>