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

#include
int main(void)
{

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

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


return 0;
}