I am having a problem with reading more then the first line in this loop. The function has a loop that should read each line in a csv file and output the information from the file that the user is searching for. It will then send data to an array to store the important information read from the file. It keeps reading the first line over and over again. This is the entire program and i'll point out where it goes wrong.
This is not a finished program, i can't continue writing it until i know how to fix this loop. Thanks.
string getMenu(ifstream&);
int getChoice(ifstream&, int, int);
int arrayLength(ifstream&);
int main()
{
int i = 1;
int choice;
int choicePlace;
string mainMenu;
string picks;
string lookUpChoices;
string file = "music_list.csv";
stringstream menuString;
ifstream fileIn;
int length;
cout<<"\n\n MUSIC LIBRARY\n";
cout<<" ------------------------------------\n";
cout<<" MAIN MENU\n\n";
/*cout<<"What is your file name? ";
getline(cin, file);
fileIn.open(file.c_str()); */