i need a function: readData() to read in scores from a file.
I can open a file up, but not sure how to code it so input from the user opens any file.
int readData()
{
cout << "Please enter in the path to the student score file: " << endl;
cin >> theFile;
ifstream theFile("grades.txt");
}
I need to use an array to store all the scores. I think i need to replace grades.txt with somthing?