How to change a file's name through the C program?

B

Bruce Sam

Only I want to do is when I input a file's name in command line,the
program can change the name by specified one.Could you give me some
methods to do it?
 
M

Martin Ambuhl

Bruce said:
Only I want to do is when I input a file's name in command line,the
program can change the name by specified one.Could you give me some
methods to do it?
use the standard function rename().
 

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

Forum statistics

Threads
474,157
Messages
2,570,879
Members
47,414
Latest member
djangoframe

Latest Threads

Top