69,369
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
void main()
{
int i;
FILE *fp;
char *filename="abc.txt";
if((fp=fopen(filename,"w"))==NULL)
{
printf("can't open the file 1");
return;
}
printf("create file successfully");
for(i=0;i <1000;i++)
{
printf("%d\t",i);
fprintf(fp,"%s\t","aaa");
}
fclose(fp);
}