DEV Community

Discussion on: Shell Programming Using C Programming Language

Collapse
 
mikeyolang profile image
Michael Otieno Olang • Edited

I think its correct that way since we need the cotent of source file to be copied to destination file, so if both files does not exist we throw an error.
However if we must use "OR" then we need to add a code that can create the destination file then append.