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:
-
pages.C, the source code;
-
pages.csh, commands to compile
and load the source code;
List of Routines:
-
MAIN is the main program for PAGES.
-
HANDLE processes one file.
-
FILE_LINE_COUNT counts the lines in one file.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the C++ source codes.
Last revised on 04 December 2006.