WRAP is a C++ program which reads a file and makes a copy in which long lines have been broken up.
The user specifies a maximum allowable line length. Any line of text in the input file that is longer than this length is broken into two or more lines, with all but the last of these pieces being exactly the maximum length.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
CR2LF is a C++ program which reads a text file and replaces carriage returns by line feeds.
CRRM is a C++ program which reads a text file and writes a copy which has no carriage returns.
DEBLANK is a C++ program which makes a copy of a text file in which blank lines have been removed.
DECOMMENT is a C++ program which makes a copy of a text file which contains no "comment" lines (that begin with "#").
FILUM is a C++ library which performs various operations on files.
REFORMAT is a FORTRAN90 program which reads a file that contains only real values, and writes a copy which has a fixed number of real values on each line.
REWORD is a C++ program which makes a copy of a file in which each line has the same number of "words".
UNCONTROL is a C++ program which makes a copy of a text file which contains no control characters.
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.
You can go up one level to the C++ source codes.