Numlines.com adds up the number of line feeds found in a textfile and writes
the sum (minus 1) to standard output, appending a carrage return and line feed.
This gives the same number as the @LINES function in 4DOS.COM and is much
faster when checking large files.

This is version 5 and can count to 2**32 lines; over 4 million lines.

To set an environment variable as with 4DOS;

numlines filename | Input %%var

For usage, TYPE [path]numlines.com

The A86 assembler code is included with some comments.

If someone can improve this, please netmail it to me or, post it in 80xxx,

Barry Block  2:280/901.42  or  Barry_Block@p42.f901.n280.z2.fidonet.org

Thank you.  6-96
