Rename a file
#include <stdio.h> int main(void) { if(rename("my.txt", "your.txt")) printf("Rename failed.\n"); else printf("Rename successful.\n"); return 0; }