Question: give me C codes for unix/linux 1. UNIX cat command has three functions with regard to text files: displaying them, combining copies of them and
1. UNIX cat command has three functions with regard to text files: displaying them, combining copies of them and creating new ones. Write a C program to implement a command called displaycontent that takes a (text) file name as argument and display its contents. Report an appropriate message if the file does not exist or can't be opened (.e. the file doesn't have read permission). You are to use open, read, write() and close() system calls. NOTE: Name your executable file as displaycontent and execute your program as ./displaycontent file name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
