Question: 3. (C Program) If you open a file for read-write with the append flag, can you still read from anywhere in the file by using

3. (C Program) If you open a file for read-write with the append flag, can you still read from anywhere in the file by using lseek()? Can you use lseek() to replace existing data in the file. a) Write a C program to verify this. b) Make an experiment to demonstrate your code. You can make a file with 5 letters for testing. Take a screen shot of your experiment to support your result.

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 Databases Questions!