
remove file using UNIX on C
Hi,
I am new to C and would like to ask for help.
Problem:
I have a function that return a string and I want to rename
a file in a directory with a return string.
Example:
A function return a string "New_file"
I would like rename a file in a directory with new name call "New_file"
What I have in mine is to use the Unix command:
system ("mv "old_file" "New_file");
Would someone show me how to implement this in C.
Thanks in advance,
--== Sent via Deja.com http://www.*-*-*.com/
---Share what you know. Learn what you don't.---