# include & ltstdio.h & gt
Master ()
{
FILE * fp
int i,j,a[ 10];
If ((FP = fopen ("data.txt ","r+b")) = = null) {/* Open the data file data.txt */
Printf ("Unable to open file. \ n ");
Exit (0);
}
I = 0;
while(feof(FP)= = 0 & amp; & amp & lt80){ /* Read integers one by one until the end of the file or more than 80 integers */
j=fscanf(fp," %d ",& ampa[i++]);
}
fclose(FP); /* Close file pointer */
Printf ("data is: \ n");
for(j = 0; j & ltI- 1; j++) printf("%d ",a[j]); /* Output the read data to the screen */
}