copying a file

hello,

i have to copy a file from one directory to another directory in linux.

how to do this using a c function?

kindly ans to my query.

thanks

You can use:
System("/bin/cp file dir/file");

thanx, thanx a lot

sachin