rename oldfile to newfile only if newfile does not exist
Is there any command to use in c++ on linux platform for renaming oldfile to newfile only if newfile does not exist. If newfile exist it must return some error no.
In windows rename() is used , but in linux it will automatically replaced even though newpath already exists.
ThankU,
Nagendra R.
|