Question: IMPLEMENT cat COMMAND (50PTS) PURPOSE The purpose of this assignment is to provide practice using the system calls we discussed for working with files on


IMPLEMENT cat COMMAND (50PTS) PURPOSE The purpose of this assignment is to provide practice using the system calls we discussed for working with files on a UNIX system. You will be writing a basic implementation of the cat command using C++. DESCRIPTION As you should recall, the cat command takes a list of files as command line arguments. It then opens each file in turn, writing each file's entire contents to standard output in the order they were supplied. You will be responsible for writing a C++ program that implements this behavior. REQUIREMENTS a. Your program must be able to handle any number of files, which will have their filenames passed as command line arguments. b. No matter how long each file is, your program must be able to read and output all of the data in contains c. All of the data must be displayed, even if the file contains non-text data. Notice that this means cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
