函数名: remove
功 能: 删除一个文件
用 法: #include <stdio.h>
int remove(char *filename);
程序例:
#include <stdio.h>
int main(void)
{
char file[80];
/* prompt for file name to delete */
printf("File to delete: ");
gets(file);
/* delete the file */
if (remove(file) == 0)
printf("Removed %s.\n",file);
else
perror("remove");
return 0;
}