cでファイルをリネームする方法
#include <iostream> #include <stdio.h> int main(int argc, char argv[]) { if (rename("text.txt", "new.txt") == 0) { std::cout << "ファイル名を変更しました" << std::endl; } else { std::cout << "ファイル名を変更失敗しました" << std::endl; } getchar(); return 0; }