Exercise Find a fairly large file that contains some text and some blank lines.
It was originally posted to our local news system by David O'Brien . From the previous exercise you should have a program which prints out the password file with line numbers. Change it so that works with the text file. Now alter the program so that line numbers aren't printed or counted with blank lines, but every line is still printed, including the blank ones. Remember that when a line of the file is read in it will still include its newline character at the end.