I am trying to create a version of file copy that allows the user to append the target file that already exists. The program takes two arguments: source-file and destination-file.
If the destination-file already exists, it must ask the user to choose between three options: overwrite destination-file, append destination-file or cancel.
It should make the following argument checks:
- The number of arguments must be 2.
- The source-file must be a regular file.
- If the destination-file exists, it must be a regular file.
Can anyone help me how I would go about completing this task?