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
Get step-by-step solutions from verified subject matter experts
