#include <stdio.h>
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
FILE* fp = fopen("a.txt","r");
if(fp==NULL)
{
cout << "打开文件失败" << endl;
return -1;
}
int startPos = 3;
fseek(fp,startPos,SEEK_SET);
char buf[512];
bzero(buf,sizeof(buf));
while(fgets(buf,sizeof(buf),fp)){
cout << buf;
}
fclose(fp);
}
456789