反序显示一个文本出问题了,为什么打不开文件
程序代码:#include<stdio.h>
#include<stdlib.h>
#define jie '\032'
int main()
{
FILE*fp;
char x[99],c;
long i,j;
puts("ent yao de nei rong:");
gets(x);
while((fp=fopen(x,"rb"))==NULL)
{
puts("Don't open \"x\"file");
exit(1);
}
fseek(fp,0L,SEEK_END);
j=ftell(fp);
for(i=1L;i<=j;i++)
{ fseek(fp,-i,SEEK_END);
c=getc(fp);
if(c!=jie&&c!='\r')
puts(c);
}
putchar('\n');
fclose(fp);
return 0;
}









