Writing a program that reads a given file character by character, and prints them on the screen, followed by the number of lines and characters. The name of the file will be read from the command line, as follows: ProgramName filename You are supposed to…