home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR3
/
FPALN101.ZIP
/
FPALN.DOC
< prev
next >
Wrap
Text File
|
1993-12-26
|
3KB
|
85 lines
FPALN
Free DOS utility: text file page & line counter
Version 1.01 - December 26, 1993
(c) 1993
by
David Daniel Anderson
Reign Ware
FPALN reads a text file, and displays the number of lines on each page, the
number of pages, and total number of lines.
Usage: FPALN text_file [/t (file Totals only)]
FPALN takes one or two parameters on the command line. The first is the name
of the file to dissect, and the program will prompt for a name if none is
appears. The second is simply "/t" (without the quotes), and forces the
program to restrict output to only file totals (suppressing page totals). You
can only use "/t" IF you specify a VALID filename as the first parameter.
Wildcards are not allowed.
FPALN counts every linefeed/ carriage return combination (ASCII 13 followed by
ASCII 10), as a line and every formfeed (ASCII 12) as a page. The former is
otherwise known as EOL (end of line). The latter is represented by the intl.
symbol for the female gender, and is the first character on the 50th line of
this document.
FPALN will only count up to 65535. I do not know what will happen when that
many lines are counted, but there is nothing in this program that can hurt your
computer or its files. Just don't trust it if it says your file has 65535 of
anything - it may have more that FPALN could not count.
As an example, I include below the output you would get by typing (without
the quotes) "FPALN manual.doc", given that "manual.doc" is the electronic
manual for the shareware version of PKZIP (R) 2.04g, and has the following
characteristics:
Name Size Date Time CRC
MANUAL .DOC 202252 2-01-93 2:04:16 CBA52694
Note: You may not have this exact file on your system.
------[ start quote here ]------
Page: 1 has: 30 lines.
Page: 2 has: 36 lines.
Page: 3 has: 56 lines.
< many more lines the same as above >
Page: 98 has: 49 lines.
Page: 99 has: 48 lines.
Page: 100 has: 51 lines.
Page: 101 has: 37 lines.
Page: 102 has: 42 lines.
Page: 103 has: 38 lines.
Page: 104 has: 1 lines.
Text file ■ manual.doc ■ has: 5609 lines on: 104 pages.
------[ end quote here ]------
[Notice that page 104 has just 1 line. This is because a formfeed was put at
the end of the last line of text, which is quite unnecessary. A more elegant
solution for ejecting the final sheet from the printer (when necessary at all),
is to simply send a formfeed to the printer. Many shareware and freeware
programs are available to do just this, even though the ability is often
incorporated into multi-use printing programs, especially print spoolers.]
{------------------------------------------------------------------------------
REVISION HISTORY
v1.00 : 1993/07/14. First public release. DDA
v1.01 : 1993/12/26. Now recognizes DOS wildcards. DDA
------------------------------------------------------------------------------}