Question: task 2 requires you to modify task 1 code. Ive already provided task 1 code. modify the given code to satisfy task 2 requirements. follow


Task 2 (50 points) Modify the above program to implement a program called body similar to UNIX commands head or tail. It should print from the mh line to the the line of the given file. It should have the following syntax: $/body m n fileName The above program displays the contents of the file named fileName, from line m to line n. Each system call must have error checking, and print an error message if it occurs. You must use open(), read(), write(), and close system calls. 10 points each 1 2 3 4 5 6 tinclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
