创建一个FILE *fp;用fopen打开一个文件,用fprintf写入然后关闭fp如FILE *fp;char a[] = "just for help!"int b = 100;fp = fopen("xxxx.txt", "w");fprintf(fp, "%s%d\n", a, b);fclose(fp);