Question: Write a C program that makes a copy of a file. The source (existing file) and the destination are given as command line arguments: gcc
Write a C program that makes a copy of a file. The source (existing file) and the destination are given as command line arguments:
gcc filecopy.c -o filecopy
filecopy path_to_existing_file path_to_new_file
The first command line argument is the name (path) of the existing file. The second command line argument is the name (path) of the file to be created.
You can assume the file to be copied is a text file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
