For example:
% count a b c a: 2755 characters 120 lines b: 905 characters 46 lines c: 460 characters 26 linesYour program should print a suitable message if a file can not be openned.
For example head -n 50 index.html will print the first 50 lines of index.html.
If the number of lines is not specified, the first 10 lines are printed.
For example head /tmp/a will print the first 10 lines of /tmp/a.
If the file has less than the specified number of lines, the entire file will be printed.
Implement a program head.c which emulates the Unix command head.
You should print a suitable error message if an exception occurs.