Problem statement
Write a command line program that implements Unix wc like functionality. Read the man page for wc if you don't know what it does. Implement all options such as -l (show only line count), -w (show only word count), -c (show only character count). Also, allow to combine these options as the user wants. Display all three values (line, word, and char count) if no option is specified. The input to wc can be single or multiple files or even STDIN.
The program should have the following features.
Story 1 (print line count for a single file)
Given a single text file as input, implement wc -l that counts the number of lines in the file. The program will be executed as follows: