C++ begginer, read from a csv file and store data in arrays

hello. i need urgent help. i have to read and right from a csv file.
I want to create a c++ app that will read student data from a file.
here how the file should be:
21300001,TPG11AT,67
21300002,TPG11AT,33
... so forth with 10 rows and 3 columns.

I have to extract the from file and load the file.
also have an array for studNums, subjCode and mark from a line parameter.
the string line will always be in the format of:
StudentNum, subject code,mark.
please help I am a c++ begginer.

1
2
3
4
5
6
7
  ifstream inputFile;
  ofstream outFile;

  outFile.open ("markSheet.csv");
  outFile << "21300001,TPG11AT, 67\n"
                 << "21200002,TPG11AT, 33\n";
outFile.close();
go
Topic archived. No new replies allowed.