I have a csv file that I need to be able to read it into a struct array. I have read examples and they all match what I have.
void ReadStudents ()
{
fstream infile;
int i;
infile.open ("c:\\students.txt");
for (i =0; i < 20; i++)
{
infile >> ::students[i];
}
infile.close ();
}
students is a global variable.