Question: I need help on reading this csv file properly in C++. My function reads the the first line but breaks afterwards. Please help!! My header
I need help on reading this csv file properly in C++. My function reads the the first line but breaks afterwards. Please help!!
My header file and cpp file.

My output:

What the output should look like(the csv file).

#include #include #include #include void readCsvToArray(Student array[], int size, ifstream& file) 7 string dummyString; getline(file, dummyString); 10 using namespace std; struct Student 11 int index = 0; char delim = ','; while (!file.eof() && index > array[index].id >> delim; int id; string lastName; string firstName; string ssn; float test[4]; float final; string letterGrade; char delim = ', '; getline(file, array[index].lastName, , getline(file, array[index].firstName, ...); file >> array[index].ssn >> delim; file >> array[index].test[4] >> delim; file >> array[index].final >> delim; getline(file, array[index].letterGrade, .,; 24 25 void menu(); void readCsvToArray(Student array[], int size, ifstream& file); #endif cout