469,609 Members | 1,829 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

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

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?

Nov 14 '05 #1
2 1938
Bruce Sam wrote:
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().
Nov 14 '05 #2
Bruce Sam wrote on 30/12/04 :
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?


rename()

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"C is a sharp tool"

Nov 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by b.milbrandt | last post: by
3 posts views Thread by Don Pasquale | last post: by
2 posts views Thread by david | last post: by
8 posts views Thread by bim_bom | last post: by
11 posts views Thread by cybervigilante | last post: by
reply views Thread by Solution2021 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.