These days most of us use much better text editors than Notepad. But yesterday I found a neat little trick to find the current line number and eventually the total number of lines in a text file using notepad from my colleague Nandan Prabhu. Generally when you press Ctrl+G notepad will pop up the Go to Line dialog. Inside this dialog is the (hidden) current line number information pre-filled by Notepad. So we can use this pre-filled info to find the total number of lines in the opened text file by going to the end of the file and pressing Ctrl+G ;). This may not be an earth shattering discovery! But may be useful if you don’t have access to any other tools other than Notepad.
Note: Make sure Word Wrap is unchecked in the Format menu.