In a nutshell, I need a violent push in the right direction. I have to take a list of football team names, and write a program that displays the teams in alphabetical order, that start with the letter "B" and only appear once.
So far I have...
Public Class Form1
Dim TeamNames() As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Loads the SBWinners file
TeamNames = IO.File.ReadAllLines("SBWinners.txt")
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Displays the Teams
Dim TeamQuery1 = From TeamNames In TeamNames
For Each TeamNames As String In TeamQuery1
Which narrows it down to four entries in the text file that start with B. How do I sort out the re-occurring entry?
The Output I get Bear, Broncos, Broncos, Buccaneers.
Secondly, the answer is already in alphabetical order, only out of random chance since they occur in the text file that way. If you want to play around with it, just use the four entries I get in the output as the text files, since the rest is junk data for the assignment at this point.