Question: Create a C program using only system-calls (no printf and scanf) that copies the contents of one file to a destination file. The program follows
Create a C program using only system-calls (no printf and scanf) that copies the contents of one file to a destination file. The program follows the following sequence:

source file destination file Example System Call Sequence Acquire input file name Write prompt to screen Accept input Acquire output file name Write prompt to screen Accept input Open the input file if file doesn't exist, abort Create output file if file exists, abort Loop Read from input file Write to output file Until read fails Close output file Write completion message to screen Terminate normally
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
