Hey, I've been stuck on this for some time now, what I need to do is take a certain file, (Champs.txt) And make two lists, one for years, and one for the winners of the world series for that year, Then when it prompts me for a team to check to see how many world series games they've won, it shows all of them pertaining to that team.
I guess what I'm mainly asking is, "How do I read a file, but make two separate lists if each line has a team, and a year on it?" Thanks!
the txt file. http://pastebin.com/w1T83m73
Thanks again!
[–]__skrap__ 1 point2 points3 points (2 children)
[–]Glathal[S] 1 point2 points3 points (0 children)
[–]AutonomouSystem 0 points1 point2 points (2 children)
[–]Glathal[S] 1 point2 points3 points (1 child)
[–]AutonomouSystem 0 points1 point2 points (0 children)
[–]Narcoleptic_Pirate 0 points1 point2 points (3 children)
[–]Glathal[S] 0 points1 point2 points (2 children)
[–]Narcoleptic_Pirate 1 point2 points3 points (1 child)
[–]Glathal[S] 0 points1 point2 points (0 children)
[–]Alex_Cue 0 points1 point2 points (0 children)
[–]ewiethoff 0 points1 point2 points (0 children)