How to calculate total line number of a text file?
I have a text file. I want to get the total line number of it. Could somebody know which function should I use? Or I should write the counting code for each line?