#include <stdio.h>
#include <stdlib.h>
int main()
{
system("color 2f");
char oldname[] = "lola.txt";
char newname[] = "lucia.txt";
int result = rename(oldname, newname);
if(result == 0){
puts("Successfull rename");
}else{
perror("Error: ");
}
return 0;
}
#include <stdlib.h>
int main()
{
system("color 2f");
char oldname[] = "lola.txt";
char newname[] = "lucia.txt";
int result = rename(oldname, newname);
if(result == 0){
puts("Successfull rename");
}else{
perror("Error: ");
}
return 0;
}
No comments:
Post a Comment