#include<stdio.h> void main(){ FILE *fp; fp = fopen("test","a"); fprintf(fp,"%d %s %d\n",1,"asdfasdf",2); fclose(fp) ; }