#include<stdio.h>
#include<string.h>
int main()
{
FILE *in, *out;
char str[500];
char temp[496];
int i;
int j=0;
int n,m;
in=fopen("1.fasta","r");
out=fopen("out.txt","w");
if(((in=fopen("in.fasta","r"))==NULL))
{
printf("文件打开失败!\n");
//exit(0);
//char *fgets(char *str,int num,FILE *out);
}
fgets(str,501,in);
n=strlen(str);
printf("%d\n",n);
//puts(str);
//fputs(str,out);
for(i=0;i<496;i++)
{
temp[j]=str[i+4];
j++;
}
m=strlen(temp);
printf("%d\n",m);
//puts(temp);
fputs(temp,out);
fclose(in);
fclose(out);
return 0;
}