#include
main()
{
FILE *fp; /*建立文件指针*/
char c[10]="abcdef" ;
fp=fopen("c:\\kk.txt","w"); /*将文件指针指向C盘 的 kk.txt文件*/
fprintf(fp,"%s",c); /*将字符串内容输出到文件中*/
fclose(fp); /*关闭文件*/
}
#include
void main()
{
FILE *fp;
fp=fopen("c:\\test.txt","w");
fprintf(fp,"asdfasdf,%d",10);
fclose(fp);
}
printf(" ")
fprintf("","");