It is my source code..

#include<stdio.h>
#include<conio.h>
#include<graphics.h>

typedef struct
{
	int pno;
	char name[20];
	struct detail
	{
		char mno[12];
		char bdate[10];
		char pname[15];
		char pre[10];
	}D;
}cust;

/*-------------------------------Loading Page-------------------------------------------*/
void loading()
{
	int x,y;
	cleardevice();
	for(x=1;x<=210;x++)
	{
		rectangle(20,20,620,460);
		setcolor(4);
		delay(30);
		circle(x+195,210,9);
		setcolor(15);
		settextstyle(10,0,4);
		outtextxy(200,220,"LOADING..");
	}
	cleardevice();
}

/*-----------------------------Password Page-------------------------------------------*/
void password()
{
	char *pwd;
	cleardevice();
	setcolor(15);
	rectangle(145,145,475,325);
	rectangle(140,140,480,330);
	settextstyle(4,0,5);
	outtextxy(165,200,"Enter Password : ");
	cscanf("%s",pwd);

	if(strcmp(pwd,"n")==0)
	{
		outtextxy(215,250,"Welcome");
		getch();
		getch();
		loading();
	}
	else
	{
		outtextxy(200,250,"Invalid");
		getch();
		getch();
		password();
	}

cleardevice();
}

/*-----------------------------lines()----------------------------------------------*/
void lines()
{
	int i;
	printf("\n");
	for(i=0;i<80;i++)
		printf("-");

	printf("\n");
}

/*----------------------------------Title()----------------------------------------------*/
void title()
{
	lines();
	printf("Policy No  Name         B'Date     Plan Name    Premium    Mobile No.");
	lines();
}

/*----------------------------choice Menu----------------------------------------------*/
int choice(int ch)
{
	//printf("\n\n\n\n\n\n");
	gotoxy(2,2);
	lines();
	printf("\n\t\t\t1. Create New File ");
	printf("\n\t\t\t2. Append a Record ");
	printf("\n\t\t\t3. Display ");
	printf("\n\t\t\t4. Search By Policy no ");
	printf("\n\t\t\t5. Search By Name ");
	printf("\n\t\t\t6. Delete Record ");
	printf("\n\t\t\t7. Modify Record ");
	printf("\n\n\t\t\t0.  to Exit\n ");
	lines();
	printf("\n\n\t\t\tEnter Your choice : ");
	scanf("%d",&ch);
	return ch;
}

/*----------------------------------CREATE FILE-----------------------------------*/
void getdata()
{
	int n,i,j;
	cust *c;
	FILE *fp;
	fp = fopen("cust.txt","wb");
	cleardevice();
	gotoxy(1,1);

	printf("\n\t\tEnter How many Records You want : ");
	scanf("%d",&n);
	printf("\n\n");

	c = (cust *)malloc(sizeof(cust)*n);

	for(i=0;i<n;i++)
	{
		printf("\n\tEnter policy no       : ");
		scanf("%d",&c[i].pno);

		printf("\n\tEnter Name            : ");
		scanf("%s",c[i].name);

		printf("\n\tEnter date of birth(dd/mm/yyyy): ");
		scanf("%s",&c[i].D.bdate);

		printf("\n\tEnter plan name       : ");
		scanf("%s",&c[i].D.pname);

		printf("\n\tEnter Premum Amount   : ");
		scanf("%s",&c[i].D.pre);

		printf("\n\tEnter your mobile no. : ");
		scanf("%s",&c[i].D.mno);

	fwrite(&c[i],sizeof(c[i]),1,fp);
	}
	fclose(fp);
	free(c);
}

/*----------------------------------ADD RECORD------------------------------------*/
void adddata()
{
	int n,i;
	cust *c;
	FILE *fp;
	fp = fopen("cust.txt","ab");
	cleardevice();
	gotoxy(1,1);
	printf("\n\n\t\tEnter How many Records You want to add : ");
	scanf("%d",&n);

	c = (cust *)malloc(sizeof(cust)*n);

	for(i=0;i<n;i++)
	{
		printf("\n\tEnter policy no       : ");
		scanf("%d",&c[i].pno);

		printf("\n\tEnter Name            : ");
		scanf("%s",c[i].name);

		printf("\n\tEnter date of birth(dd/mm/yyyy): ");
		scanf("%s",&c[i].D.bdate);

		printf("\n\tEnter plan name       : ");
		scanf("%s",&c[i].D.pname);

		printf("\n\tEnter Premum Amount   : ");
		scanf("%s",&c[i].D.pre);

		printf("\n\tEnter your mobile no. : ");
		scanf("%s",&c[i].D.mno);

	fwrite(&c[i],sizeof(c[i]),1,fp);
	}
	fclose(fp);
	free(c);
}

/*-------------------------------DISPLAY RECORD--------------------------------------*/
void display()
{
	FILE *fp;
	cust c;
	int cnt=0;
	fp = fopen("cust.txt","rb");
	cleardevice();
	gotoxy(1,1);
	printf("\n\n\t\t\t::::::RECORDS::::::\n");
	title();
	while(fread(&c,sizeof(c),1,fp))
	{
		printf("\n%5d   | %5s   | %10s | %12s | %7s |%13s\n",c.pno,c.name,c.D.bdate,c.D.pname,c.D.pre,c.D.mno);
		cnt++;
	}
	gotoxy(50,25);
	printf("Press any key to go back...");
	if(cnt==0)
	{
		gotoxy(15,15);
		lines();
		printf("\t\t\t\t");
		printf("File is empty\n");
		lines();
	}

	fclose(fp);
}

/*----------------------------Search By Policy No.----------------------------------*/
void searchpno(int pno)
{
	FILE *fp;
	cust c;
	int found=0;
	fp = fopen("cust.txt","rb");

	while(fread(&c,sizeof(c),1,fp))
	{
		if(c.pno == pno)
		{
		cleardevice();
		printf("\t\t\t::::::Search By Policy No::::::\n");
		title();
		printf("\n %d   |  %s       |  %s   |  %s   |   %s   |   %s\n",c.pno,c.name,c.D.bdate,c.D.pname,c.D.pre,c.D.mno);
		gotoxy(50,25);
		printf("Press any key to go back...");
		found=1;
		}
	}
	fclose(fp);

	if(!found)
	{
		lines();
		printf("\t\t\tRecord Not Found\n");
		lines();
	}

}

/*-------------------------------Search By Name----------------------------------*/
void searchByname(char name[])
{
	FILE *fp;
	cust c;
	int j,found=0;
	fp = fopen("cust.txt","rb");

	while(fread(&c,sizeof(c),1,fp))
	{
		if(stricmp(c.name,name)==0)
		{
		cleardevice();
		printf("\n\t\t\t::::::Search By Name::::::\n");
		title();
		printf("\n %5d   | %5s   |     %s | %10s | %3s |%14s\n",c.pno,c.name,c.D.bdate,c.D.pname,c.D.pre,c.D.mno);
		gotoxy(50,25);
		printf("Press any key to go back...");
		found=1;
		}
	}

	fclose(fp);

	if(!found)
	{
		lines();
		printf("\t\t\tRecord Not Found\n");
		lines();
	}

}

/*--------------------------Delete By Policy No.------------------------------------*/
void deleteBypno(int pno)
{

	int i,j,n,found=0;
	FILE *fp;
	cust *tmp;
	fp = fopen("cust.txt","rb");

	fseek(fp,0,2);
	n = ftell(fp)/sizeof(cust);
	rewind(fp);

	tmp = (cust *)malloc(sizeof(cust)*n);

	for(i=0;i<n;i++)
	{
		fread(&tmp[i],sizeof(tmp[i]),1,fp);
			if(tmp[i].pno == pno)
			{
				tmp[i].pno = 0;
				found = 1;
			}
	}
	fclose(fp);

	if(found)
	{
		fp = fopen("cust.txt","wb");
		for(i=0;i<n;i++)
		{
			if(tmp[i].pno!=0)
			fwrite(&tmp[i],sizeof(tmp[i]),1,fp);
		}
		fclose(fp);
		lines();
		printf("\t\t\t::::::Record Deleted Successfully::::::\n");
		lines();
	}
	else
	{
		lines();
		printf("\t\t\t::::::Record Not Found::::::\n");
		lines();
	}

}

/*---------------------------Modify By Policy No.--------------------------------*/
void modifyBypno(int pno)
{
	int i,j,n,found=0,m_ch;
	FILE *fp;
	cust *tmp;
	fp = fopen("cust.txt","rb");

	fseek(fp,0,2);
	n = ftell(fp)/sizeof(cust);
	rewind(fp);

	tmp = (cust *)malloc(sizeof(cust)*n);

	for(i=0;i<n;i++)
	{
		fread(&tmp[i],sizeof(tmp[i]),1,fp);
		if(tmp[i].pno == pno)
		{
			lines();
			printf("\t\t\t1.Modify Name");
			printf("\n\t\t\t2.Modify Date Of Birth");
			printf("\n\t\t\t3.Modify Plan Name");
			printf("\n\t\t\t4.Modify Premium Amount");
			printf("\n\t\t\t5.Modify Mobile No.");
			printf("\n\n\t\t\t0.Back To Menu\n");
			lines();

			printf("\n\n\t\tEnter Your choice : ");
			scanf("%d",&m_ch);

			switch(m_ch)
			{
				case 1:
					printf("\n\n\t\Enter New Name : ");
					scanf("%s",tmp[i].name);
					found = 1;
				break;
				case 2:
					printf("\n\t\Enter New Date Of Birth(dd/mm/yyyy): ");
					scanf("%s",tmp[i].D.bdate);
					found = 1;
				break;
				case 3:
					printf("\n\t\Enter New Plan name       : ");
					scanf("%s",tmp[i].D.pname);
					found = 1;
				break;
				case 4:
					printf("\n\t\Enter New Premium Amount   : ");
					scanf("%s",tmp[i].D.pre);
					found = 1;
				break;
				case 5:
					printf("\n\t\Enter Your New Mobile Number : ");
					scanf("%s",tmp[i].D.mno);
					found = 1;
				break;
				case 0:
					return;
				default:
					lines();
					printf("\t\t\t\tInvalid Choice");
				break;
			}
		}
	}
	fclose(fp);

	if(found)
	{
		fp = fopen("cust.txt","wb");
		for(i=0;i<n;i++)
		fwrite(&tmp[i],sizeof(tmp[i]),1,fp);
		fclose(fp);
		lines();
		printf("\t\t\tRecord Modified Successfully\n");
		lines();
	}
	else
	{
		lines();
		printf("\t\t\t::::::Record Not Found::::::\n");
		lines();
	}

}

/*-----------------------------Main Menu-----------------------------------------*/
void menu()
{
	int ch,pno;
	char name[20];
	do
	{
		cleardevice();
		gotoxy(1,1);
		printf("\n\t\t: : : : L.I.C. Customer Help Main Menu : : : : ");
		switch(ch=choice(ch))
		{
			case 1 :
			getdata();
		break;
		case 2 :
			adddata();
		break;
		case 3 :
			display();
		break;
		case 4 :
			cleardevice();
			gotoxy(1,1);
			printf("\n\n\t\tEnter Policy No. to Search : ");
			scanf("%d",&pno);
			searchpno(pno);
		break;
		case 5 :
			cleardevice();
			gotoxy(1,1);
			printf("\n\n\t\tEnter Name to Search : ");
			scanf("%s",name);
			searchByname(name);
		break;
		case 6:
			cleardevice();
			gotoxy(1,1);
			printf("\n\n\t\tEnter Poilcy No to Delete : ");
			scanf("%d",&pno);
			deleteBypno(pno);
		break;
		case 7:
			cleardevice();
			gotoxy(1,1);
			printf("\n\n\t\tEnter Policy no to Modify : ");
			scanf("%d",&pno);
			modifyBypno(pno);

		break;
		case 0:
			cleardevice();
			gotoxy(10,10);
			lines();
			printf("\n\t\t\t::::::Thanks for joining us.::::::\n");
			lines();
		break;
		default :
			lines();
			printf("\t\t\tInvalid Choice\n");
			lines();
		}
		getch();
	}while(ch!=0);
}


void main()
{
	int gd=DETECT,gm;
	initgraph(&gd,&gm,"c:\\tc\\bgi");
	password();
	menu();
}