Prog#175: read information from file & display it on screen

/*
read information from file & display it on screen
Program#175
*/
#include<stdio.h>
main()
{
typedef struct bio{
char name [25];
int age;
float salary;
char addr [25];
}BIO;
BIO a;
FILE *fp;
fp=fopen ("BIODATA", "r");
if(fp==NULL)
{
printf("file open error");
return 0;
}
fscanf(fp, "%s %d %f %s", &a.name, &a.age, &a.salary, &a.addr);
printf("%s %d %f %s", a.name, a.age, a.salary, a.addr);
fclose(fp);
}