C语言中如何用代码新建一个"xxx.bat"的文件?
FILE * fp;
if ( ( fp == fopen("xxx.bat", "w")) == NULL )
{
printf("cannot open file\r\n");
return ;
}
fclose(fp);
FILE * fp;
if ( ( fp == fopen("xxx.bat", "w")) == NULL )
{
printf("cannot open file\r\n");
return ;
}
fclose(fp);