What names are displayed in the list box when the button is


What names are displayed in the list box when the button is clicked?

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click

 Dim name(4) As String

 Dim sr As IO.StreamReader = IO.File.OpenText("DATA.TXT")

 For i As Integer = 0 To 4

 name(i) = sr.ReadLine

 Next

 sr.Close()

 lstBox.Items.Clear()

 For i As Integer = 4 To 0 Step -2

 lstBox.Items.Add(name(i))

 Next

End Sub

Assume the five lines of the file DATA.TXT contain the following entries: Bach,

Borodin, Brahms, Beethoven, Britain.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What names are displayed in the list box when the button is
Reference No:- TGS01368175

Expected delivery within 24 Hours