PAGES
How many pages in a file?


PAGES is a C++ program that 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"

Related Data and Programs:

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

WRAP2 is 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.