int rename(const char* kcpOldName, const char* kcpNewName);
#include <cstdio> int main() { // Delete the local file int iRet = rename("XoaX.txt", "XoaXdotnet.txt"); // Check whether or not some characters were written if (iRet != 0) { perror("Failed to rename file XoaX.txt"); } else { printf("The file XoaX.txt was renamed.\n"); } return 0; }
© 20072024 XoaX.net LLC. All rights reserved.