Logo

Programming-Idioms

# 343 Rename file
Rename the file at path1 into path2
New implementation

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
#include <stdio.h>
rename(path1, path2);
err := os.Rename(path1, path2)
SyUtils
if RenameFile(path1,path2) then writeln('Ok');
import os
os.rename(path1, path2)
File.rename(path1, path2)