关于文件随机定位函数的问题
请问红色的语句是不是可有可无的啊#include<stdio.h>
#inclue<stdlib.h>
#include<ctype.h>
void main()
{
FILE *fp;
char c;
if((fp=("d:\\char2.txt","r+"))==NULL)
{printf("can not open file!\n"); exit(0);}
while(!feof(fp))
{c=fgetc(fp);
if(islower(c)!=0)
{c=toupper(c);
fseek(fp,-1L,1);
fputc(c,fp);
fseek(fp,0L,1);
}
}
fclose(fp);
}