/* read a data from KB and display in file */
#include< stdio.h>
#include< conio.h>
main()
{
	typedef struct bio
	{
		char name[25];
		int age;
		char sex[7];
	} BIO;
	BIO x;
	FILE *fp;
	clrscr();
	fp=fopen("file1","w");
	if(fp==NULL)
	{
		printf("file opening error");
		return;
	}
	printf("enter the name, age, sex \n");
	scanf("%s%d%s",x.name,&x.age,x.sex);
	fprintf(fp,"%s\t%d\t%s",x.name,x.age,x.sex);
	fclose(fp);
}
/* the file1 file is stored within the turboc directory */