ファイル名=  exercise/chapter21/ex21-4-1.c
#include 

#include
int main(void)
{

char name1[100];
int age;
double height;
double weight;

FILE *fp = fopen("person.txt", "r");
if(fp==NULL){
fprintf(stderr, "★ファイルを開けません");
exit(EXIT_FAILURE);
}
while(fscanf(fp,"%s%d%lf%lf", name1,&age, &height, &weight)!=EOF){
printf("%s %d %f %f\n", name1,age, height, weight);
}
fclose(fp);


return 0;
}