PAGES
How many pages in a file?


PAGES is a C++ program which counts the lines in one or more files and divides by 60 to tell me how many pages a printout will take.

Usage:

pages myfile.txt
results in a message like:
27 pages in "myfile.txt"

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

PAGES is available in a C++ version.

Related Data and Programs:

WIDTH, a C++ program which reports the length of the longest line in a given file.

WRAP2, a C++ program which wraps long lines in a text file, but which wraps some lines "early", so as to avoid breaking words.

Source Code:

List of Routines:

You can go up one level to the C++ source codes.


Last revised on 04 December 2006.