Rename a file using the standard C++ library?

J

Jason Heyes

Is there a function in the standard C++ library that serves the purpose of
renaming a file? If not, do I have to use boost or operating system specific
code? Thanks.
 
J

Jaspreet

Jason said:
Is there a function in the standard C++ library that serves the purpose of
renaming a file? If not, do I have to use boost or operating system specific
code? Thanks.

I guess you could have a look at rename() method declared in stdio.h.
It might be there in the non-deprecated <cstdio>.

int rename ( const char * oldname , const char * newname );
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top