I have a set of scores in a data file and I am having trouble figuring out the correct code to input the scores from the data file into a separate function. Is this a good start?
void get_data(int ar)
inp = fopen("proj7.dat", "r");
outp = fopen("proj7.dat", "w");
I have to open the file, read it (using a While loop) and then close the file.