1234567891011121314
int readFile(char fileName[]) { int i = 0; ifstream input; input.open(fileName); while (i != input.eof()) { input >> grade[i]; i++; } input.close(); }