下面程序的功能是:将给定的字符串、整数、浮点数写到文本文件file1.txt中,再用字符方式从此文本文件中逐个读入,并显示在终端屏幕上,请填空。
#include
int main(void)
{ char s[10]="Hello!";
  int a=12345;
  double f= 98.76;
  FILE  *fp;
  char ch;
  fp=      (1)      ;
  fprintf(fp,"%s %d %f\n", s,a,f);
  fclose(fp);
  fp=fopen("file1.txt", "r");
  printf("\nThe result: ");
  ch=fgetc(fp);
  while (    (2)    )
   {        (3)     ;
       ch=fgetc(fp);
   }
   putchar('\n');
   fclose(fp);
  }