Private Sub btnList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnList.Click
' declare a new StreamReader and Open the file
Dim nameFile As System.IO.StreamReader
nameFile = New System.IO.StreamReader("a:/friends.txt")
' declare other variables
Dim strIn As String ' a string variable used to hold the records as they are read
txtOut.Clear() ' clear the output area
' loop to read and display the file
Do Until nameFile.Peek = -1
strIn = nameFile.ReadLine
txtOut.AppendText(strIn & vbCrLf)
Loop
nameFile.Close()
txtOut.AppendText("That's all, folks!")
End Sub
Which of the following is/are true?
Explain your answers.