{
string line;
var file = new System.IO.StreamReader("C:\\Temp\\mybikes.xml");
while ((line = file.ReadToEnd()) != null)
{
listBike.Items.Add(line);
}
How do i close the StreamRead once it has finished getting the information
and putting it into the listbox

ramya bharathRank #3,780 · 391 reputationPosted Apr 15, 2015, 1:22 PM EDT
https://msdn.microsoft.com/en-us/library/system.io.streamreader.close(v=vs.110).aspx
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Apr 16, 2015, 9:43 AM EDT
Matt Donnelly4 reputationPosted Apr 16, 2015, 9:56 AM EDT