Question: Q 1 . Write a program to read the contents of file F 1 into file F 2 . The contents of file F 2

Q1. Write a program to read the contents of file F1 into file F2. The
contents of file F2 should not get deleted or overwritten.
hint: use O_APPEND flag
Q2. Write a program using open() system call to copy one file's
contents into another.
29

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!