Did you really say “look a gift horse in the mouse”?

Turn off the computer and go out into the fresh air for a walk!

- SB
That’s what made me think you were incorrectly adding 1 to the line count when a file ended with a LF. Sorry I misunderstood.Penpen wrote: I assume the safest way is, to to use fc.exe and count the hex newline characters and add 1 to get the linecount.