Program: Write a program that takes a single directory as an argument, and iterates through all the normal files in the directory, and concatenate them to standard out.
Requirements
Part 1: Takes only one argument, the directory to cat.
Part 2: Checks to make sure the argument passed in is actually a directory.
Part 3: If the wrong number of arguments is given, or the argument given is not a directory, then the program quits with an error message.
Part 4: If a valid directory is given, then open the directory, and examine every file in it.
Part 5: For each regular file in the directory (hint S_ISREG), you dump it's contents to standard output.
Part 6: Continue on, until all regular files in the directory have been output.
Part 7: Output the files in the order you find them in the directory.
Prepare the program that take single directory.