include<stdio.h>
include<stdlib.h>
int main(void)
{
FILE*fp;
int n, i, q;
int a[5];
char op;
if((fp=fopen("c:lijiawei.txt","r+"))==NULL)
{
printf("File open error!
");
exit(0);
}
for(i=0;i<5;i++){
}
fscanf(fp,"%d",&a[n]);
q=a[0];
for(i=0;i<5;i++) {
if(i>a[n]){
i=a[n];
q=n;
}
}
fprintf(fp,"
%d %d", i,q);
if(fclose(fp)){
printf("Can not close the file!");
exit(0);
}
return 0;
}