Text file line count

This feels a bit like going down the motorway on a bicycle at 10mph while the ferraris nip up and down at 200mph and occasionally park up, everyone has a quick chat in a language I don't understand and then whizz! off they go again.

I'm going to focus on the latest post from aussieboy and see how I can have a go with this. I like the idea that work to count lines is only carried out when I ask for it. I searched for buttons etc and found this:

on How to add buttons from this forum to your toolbars, so will have a go.

[Aside: is it correct that I can't edit a post once made?]

I'm running the latest beta so that should be ok.

Will this code work when the text file is on a NAS?

We'll soon find out.