#include
#include
int main(){
FILE *fd;
char line[1024];
fd=fopen("a.txt","r");
char *p;
char str[]="name=";
while(fgets(line,1024,fd))
{
if(p=strstr(line,str))
{
printf("%s",p+strlen(str));
break;
}
}
fclose(fd);
return 0;
}