0 down vote favorite
I want to make my click procedure read five names on a list called names.txt file and store them in a five element one dimensional array and then arrage them in descending order what am i missing from this code that is keeping the file from displaying? nothing shows up in the display
this is what i tried
Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click
Dim FineName As String = "names.txt"
Dim names() As String
If IO.File.Exists("names.txt") Then
names = IO.File.ReadAllLines("names.txt")
Array.Reverse(names)
Else
MessageBox.Show("The file does not exist")
End If
End Sub
End Class