Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use copy using program?

Status
Not open for further replies.

sajiv77

Programmer
Jan 2, 2002
14
IN
Hi
I am writing a program in unix where i need to copy from one locatio to another.
Cananybody help me in that.Is there any functions anybody is aware of?

I dont want to use the system function of unix.
Thanx
 
sanjiv,

your question is not very clear.

1)well through programming either use the system() funtion

#include<stdlib.h>

void main(void)
{
system(&quot; cp abc.c xyz.c &quot;);
//specify the source and destination path
}

2) write a program which does file 1/0 operation
reading from a location and writing to a location

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top