jburkardt

REWORD\ Reword a File to Have Fixed Number of “Words” Per Line {#reword-reword-a-file-to-have-fixed-number-of-words-per-line align=”center”} ======================================================


REWORD is a C++ program which reads a text file and makes a copy in which every line has the same number of “words” - that is, strings separated by blanks.

The user specifies the number of words per line.

Usage: {#usage align=”center”}

reword old new word_length

where

Licensing: {#licensing align=”center”}

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

Languages: {#languages align=”center”}

REWORD is available in a C++ version.

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

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

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

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

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

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

REFORMAT, a FORTRAN90 program which reads a text file that contains only real values, and writes a copy which has a fixed number of real values on each line.

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

WRAP, a C++ program which makes a copy of a text file in which no line is longer than a user-specified wrap length.

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: {#source-code align=”center”}

Examples and Tests: {#examples-and-tests align=”center”}

List of Routines: {#list-of-routines align=”center”}

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


Last revised on 02 December 2006.