A common utility on Unix/Linux systems is a small program called
"wc." This program analyzes a file to determine the number of lines,
words, and characters contained therein.
Write your own version of wc.
Specification
The program should accept a file name as input and then print three
numbers showing the count of lines, words, and characters in the file.
Assume you have a file "hello.txt" whose contents consist of the
following line:
1234567890123
Hello, world.
Hello
World
The program may run as below.
Please input a file name - hello.txt
4 5 40
Please note that the end-of-line character (\n) also counts for one byte.