decomment


decomment, a C++ code which makes a copy of a file in which all lines beginning with the "#" character have been removed.

It is a common convention to indicate comments in a file by an initial "#" character. I often use this convention in my data files, and it is part of the TABLE format However, certain hard-hearted or soft-headed codes will not accept comment lines. The code allows me to comment my data files, but then to easily make an uncommented version, when necessary, to feed to illiterate codes.

Usage:

decomment old new
where

Licensing:

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

Languages:

decomment is available in a C++ version.

Related Data and codes:

decomment_test

C_COMMENT, a FORTRAN90 code which makes a copy of a file in which C++ style comments have been replaced by C-style comments.

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 makes a copy of a text file which contains no carriage returns.

DEBLANK, a C++ code which makes a copy of a text file which contains no blank lines.

DETROFF, a C++ code which removes from a file every occurrence of the TROFF overprint pair character+backspace, which can make a MAN page printable;

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

RECOMMENT, a C++ code which converts C style comments to C++ style.

REFORMAT, a FORTRAN90 code 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.

REWORD, a C++ code which reads a text file and writes a copy which has a fixed number of "words" per line.

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 no line is longer than a user-specified wrap length.

WRAP2 a C++ code which wraps long lines in a text file, but which wraps some lines "early", so as to avoid breaking words.

Source Code:


Last revised on 24 April 2024.