Question: c Language creat a C function with the above capbilites creat 2 programs with the abive fubctionalites Progl.c: a. Open up a new file, test.txt,
Progl.c: a. Open up a new file, test.txt", for reading and writing (and with a permission mode of 0644) b. Repeat the following steps 10 times i. Write a string "abcdefg to the file ii. Wait 2 seconds using "sleep() call iii. Change the file's permission mode to 0666 iv. Wait 2 seconds using "sleep" system call v. Link the file "test.txt" with a different file name "tset.txt" using the link system call vi. Wait 2 seconds using the "sleep" system call vii. Unlink the file name "tset.txt" using the unlink system call viii. Wait 2 seconds using the "sleep" system call ix. Read 80 characters from "test.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
