home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / FPALN101.ZIP / FPALN.DOC < prev    next >
Text File  |  1993-12-26  |  3KB  |  85 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                      FPALN
  7.                 Free DOS utility: text file page & line counter
  8.                         Version 1.01 - December 26, 1993
  9.                                     (c) 1993
  10.                                        by
  11.                              David Daniel Anderson
  12.                                    Reign Ware
  13.  
  14.  
  15.  
  16.  
  17.  
  18. FPALN reads a text file, and displays the number of lines on each page, the
  19. number of pages, and total number of lines.
  20.  
  21. Usage: FPALN text_file [/t (file Totals only)]
  22.  
  23. FPALN takes one or two parameters on the command line.  The first is the name
  24. of the file to dissect, and the program will prompt for a name if none is
  25. appears.  The second is simply "/t" (without the quotes), and forces the
  26. program to restrict output to only file totals (suppressing page totals). You
  27. can only use "/t" IF you specify a VALID filename as the first parameter.
  28. Wildcards are not allowed.
  29.  
  30. FPALN counts every linefeed/ carriage return combination (ASCII 13 followed by
  31. ASCII 10), as a line and every formfeed (ASCII 12) as a page.  The former is
  32. otherwise known as EOL (end of line).  The latter is represented by the intl.
  33. symbol for the female gender, and is the first character on the 50th line of
  34. this document.
  35.  
  36. FPALN will only count up to 65535.  I do not know what will happen when that
  37. many lines are counted, but there is nothing in this program that can hurt your
  38. computer or its files.  Just don't trust it if it says your file has 65535 of
  39. anything - it may have more that FPALN could not count.
  40.  
  41. As an example, I include below the output you would get by typing (without
  42. the quotes) "FPALN manual.doc", given that "manual.doc" is the electronic
  43. manual for the shareware version of PKZIP (R) 2.04g, and has the following
  44. characteristics:
  45.  
  46.                Name            Size     Date     Time   CRC
  47.                MANUAL  .DOC   202252   2-01-93  2:04:16 CBA52694
  48.  
  49. Note: You may not have this exact file on your system.
  50.  
  51.                  ------[ start quote here ]------
  52. Page:       1 has:    30 lines.
  53. Page:       2 has:    36 lines.
  54. Page:       3 has:    56 lines.
  55.  
  56. < many more lines the same as above >
  57.  
  58. Page:      98 has:    49 lines.
  59. Page:      99 has:    48 lines.
  60. Page:     100 has:    51 lines.
  61. Page:     101 has:    37 lines.
  62. Page:     102 has:    42 lines.
  63. Page:     103 has:    38 lines.
  64. Page:     104 has:     1 lines.
  65.  
  66. Text file ■   manual.doc ■ has:    5609 lines on:   104 pages.
  67.                   ------[ end quote here ]------
  68.  
  69. [Notice that page 104 has just 1 line.  This is because a formfeed was put at
  70. the end of the last line of text, which is quite unnecessary.  A more elegant
  71. solution for ejecting the final sheet from the printer (when necessary at all),
  72. is to simply send a formfeed to the printer.  Many shareware and freeware
  73. programs are available to do just this, even though the ability is often
  74. incorporated into multi-use printing programs, especially print spoolers.]
  75.  
  76. {------------------------------------------------------------------------------
  77.  
  78.                                 REVISION HISTORY
  79.  
  80. v1.00  : 1993/07/14.  First public release.  DDA
  81. v1.01  : 1993/12/26.  Now recognizes DOS wildcards.  DDA
  82.  
  83. ------------------------------------------------------------------------------}
  84.  
  85.