{
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
Matt DonnellyPosted Apr 16, 2015, 1:56 PM
Abhineet SrivastavaPosted Apr 16, 2015, 1:43 PM
ramya bharathPosted Apr 15, 2015, 5:22 PM
https://msdn.microsoft.com/en-us/library/system.io.streamreader.close(v=vs.110).aspx