Im trying to read a file in of song data and populate an array of objects, but it will only read in the first line and populate all of the objects with the same data. It also wont recognize the eof, so for now I have it hard coded to read 6 times
size 0
Turn_the_Page
Bob_Segar
Rock
5
0
size 1
Turn_the_Page
Bob_Segar
Rock
5
0
size 2
Turn_the_Page
Bob_Segar
Rock
5
0
size 3
Turn_the_Page
Bob_Segar
Rock
5
0
size 4
Turn_the_Page
Bob_Segar
Rock
5
0
size 5
Turn_the_Page
Bob_Segar
Rock
5
0
Bob_Segar
num songs 6
Press any key to continue . . .
this is the songlist.txt file
1 2 3 4 5 6
Turn_the_Page Bob_Segar Rock 5:04
Bohemian_Rhapsody Queen Rock 5:55
Miss_America Styx Rock 4:59
The_Wreck_Of_The_Edmund_Fitzgerald Gordon_Lightfoot Ballad 6:30
Lonely_People America Easy 2:29
Bad_Romance Lady_Gaga Pop 4:57