C PROGRAMMING:
how would I create a function that reads the contents of a file and inputs the contents into the main program...for example:
instead of
int item[5] = {1200,3000,4000,3333,2222}
to something like
int item[5] = FUNCTIONNAME
and the function would contain the fopen and fscanf functions...