谁能解释一下这个函数?还有,这里面的变量i代表什么?
void ReadWrite(){
char ch,str[81],substr[3];
int n,len,i=0;
FILE *rf,*wf;
rf=fopen("in68.dat","r");
wf=fopen("out68.dat","w");
while(i<5)
{
fgets(str,80,rf);
fgets(substr,10,rf);
len=strlen(substr)-1;
ch=substr[len];
if(ch=='\n'||ch==0x1a)
substr[len]=0;
n=findStr(str,substr);
fprintf(wf,"%d\n",n);
i++;
}
fclose(rf);
fclose(wf);
}