このプログラムを訂正してください。
#include <stdio.h>
#include <stdlib.h>

typedef struct person{
int no,age;
char name[40];
struct person *next;
}PD;

#define FN "person.txt" // 入力するファイル名
int main(void)
{
PD *top,*cur,*end;
FILE *fp=fopen(FN,"r");
int age;

if(fp==NULL) {
printf("%sが開けません : ",FN);
perror("");
return 1;
}

top=(PD*)malloc(sizeof(PD));
cur=top;