DEV Community

Shell Programming Using C Programming Language

Michael Otieno Olang on June 11, 2022

The following C_Program is used to append text from one file to the end of another file. Does any one have an Idea on how I can implement the code ...
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.

Collapse
 
mikeyolang profile image
Michael Otieno Olang

Now thats exactly what I need to know , how to implement the argc and the argv and also the various flags such as O_RDONLY E.t.c