C语言-文件重命名和删除

#define _CRT_SECURE_NO_WARNINGS
#include 
#include 

int main(int argc, char* argv[])
{
	//移除test.txt
	remove("test.txt");
	//test2.txt 重命名为 test3.txt
	rename("test2.txt", "test3.txt");

	system("pause");
	return EXIT_SUCCESS;
}

你可能感兴趣的:(c语言)