填空题 以下程序的功能是向文件中写入一个字符串,然后读取该字符串并输出,请填空。
#include <stdio.h>
int main()
{
FILE *fp;
char str[20] = "hello world";
fp = fopen("test.txt", "________");
fprintf(fp, "%s", str);
fclose(fp);
fp = fopen("test.txt", "r");
fscanf(fp, "%s", str);
printf("%s\n", str);
________;
return 0;
}