Question: General Instructions: Use perror sub - routine to display meaningful error messages in case of system call failures. Properly close the files using close system
General Instructions:
Use perror subroutine to display meaningful error messages in case of system call
failures. Properly close the files using close system call after you finish readwrite
Learn to use man pages to know more about file management system calls eg
man read
Submission Instructions
You should use only file management system call library functions that we have
learned so far in the lab.
Make sure your programs compile and run without any errors from the terminal.Complete the below code to check whether a given file is inside the given
directory. Print an appropriate message based on your search. If the file is in
the given directory then print the size of the file by using the stat system
call.
#include
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
