#include "stdio.h"
int main(int argv,char *argc[]){
FILE *fp;
char s[1000],ch;
if((fp=fopen("data.txt","r"))==NULL){
printf("Open the file failure...\n");
return 0;
}
fseek(fp,0L,SEEK_END);
fseek(fp,-3L,SEEK_CUR);
while(fgetc(fp)!='\n')
fseek(fp,-2L,SEEK_CUR);//到这里,fp指向的文件读指针已经移到最后一行的开头
printf("%s\n",fgets(s,1000,fp));//这一行只是打出来验证一下,按题意并不需要
fclose(fp);
return 0;
}