Copy File Content

# Introduction In this challenge, you are asked to implement a C language program that can support the simplest copy function. The program should be able to copy the content of a source file to a target file, which are passed as arguments to the compiled executable file. The program should handle two types of errors: the source file to be copied does not exist, or the target file already exists. When an error occurs, the program should print an output message containing the word "error".

|
60 : 00

Click the virtual machine below to start practicing