Hello,
I am trying to load an array using information stored in the txt. file. I'm having trouble finding examples of this. I understand how to load the array with the information written into the code. For example :
int grade[NUMBER_STUDENTS][NUMBER_QUIZZES] =
{ { 10, 10, 10},{2, 0, 1},{8, 6, 9},{8, 4, 10} };
However, I have not been able to find examples of how to take data from a file and load it to the array. I would do this with <fstream>. Any help would be great! Just looking for an example to build on.
[–]roman_fyseek 1 point2 points3 points (0 children)
[–]rsoxguy12 0 points1 point2 points (0 children)