#include <stdio.h>
int main(int argc,char *argv[])
{
FILE *fp;
char writeBuff[]="hello world";
fp = fopen("a.c","w+");
if(fp==NULL)
{
printf("open file failed\n");
return -1;
}
fputs(writeBuff,fp);
fclose(fp);
return 0;
}
Linux之fputs函数(10)
最新推荐文章于 2024-03-19 21:55:39 发布