Home > Back-end >  Bosses, rename is what don't change the name?
Bosses, rename is what don't change the name?

Time:09-22

Char a [80]="D: \ \ office \ \ \ \ \ \ c student achievement management system, student achievement management system \ \ studata TXT".
Char b [80]="D: \ \ office \ \ \ \ \ \ c student achievement management system student achievement management system \ \ TMP. TXT".
Remove (a);//delete the original file
The fflush (stdin);
If (rename (b, a)==0)
Printf (" has modified the file % s to % s \ n ", b, a);
The else
Perror (" rename ");
Can run, but not the name, remove and delete files

CodePudding user response:

Look at the error code is what?