File C

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