日期:2014-05-20 浏览次数:20626 次
#include <stdio.h> FILE * fp; int main(void) { fp = fopen("fname.txt", "a"); if (fp == NULL) { printf("Fail to Open File!\n"); exit(1); } else fprintf(fp, "%s", "what ever you wanna to input!"); return 0; }