#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int i;
struct select
{
char question[1000];
char selanswer[100];
}sel[10];
void savesel()
{
FILE *fp;
if ((fp=fopen("b.txt","w"))==NULL)
{
printf("cannot open file");
return;
}
if (fwrite(&sel,sizeof(struct select),1,fp)!=1)
printf("error\n");
fclose (fp);
}
void main()
{
for (i=0;i<1;i++)
{
scanf("%s",&sel[i].question);
printf("input answer selection:");
scanf("%s",&sel[i].selanswer);
}
savesel ();
}