wrap2


wrap2, a C++ code which reads a file and makes a copy in which long lines have been broken up. A line is "wrapped" if its length would exceed a given maximum. Unlike the WRAP code, this code will wrap the line before the maximum length is reached, if that will help avoid breaking up words.

Usage:

wrap2 old new wrap_length
where

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

wrap2 is available in a C++ version.

Related Data and codes:

wrap2_test

CR2CRLF, a C++ code which reads a text file and replaces carriage returns by carriage returns + line feeds.

CR2LF, a C++ code which reads a text file and replaces carriage returns by line feeds.

CRRM, a C++ code which reads a text file and writes a copy which has no carriage returns.

DEBLANK, a C++ code which makes a copy of a text file in which blank lines have been removed.

DECOMMENT, a C++ code which makes a copy of a text file which contains no "comment" lines (that begin with "#").

FILUM, a C++ code which performs various operations on files.

REFORMAT, a FORTRAN90 code 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, a C++ code which makes a copy of a file in which each line has the same number of "words".

UNCONTROL, a C++ code which makes a copy of a text file which contains no control characters.

WRAP, a C++ code which makes a copy of a text file in which long lines have been wrapped.

Source Code:


Last revised on 27 March 2007.