Question: Name this program duplicate.c The program takes two command line arguments, the name of an input file and an output file. Your program should confirm

Name this program duplicate.c The program takes two command line arguments, the name of an input file and an output file. Your program should confirm the input file exists (exiting with an appropriate error message if it does not). If the file exists, copy the input file to the output file specified on the command line. Sample executions are shown below (with the second one giving an invalid input file)

./a.out myData dataCopy  

File copied

./a.out noSuchFile copyFile  
The file specified, noSuchFile, does not exist  

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!