FILE_ROW_REVERSE
Reversed Copy of a File


FILE_ROW_REVERSE is a FORTRAN90 program which makes a reversed copy of a text file.

For instance, the file

        I got up,
        I ate breakfast,
        Then I went to work.
      
would become
        Then I went to work.
        I ate breakfast,
        I got up.
      

Usage:

file_row_reverse input_filename output_filename

Licensing:

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

Languages:

FILE_ROW_REVERSE is available in a FORTRAN90 version

Related Data and Programs:

CHRPAK, a FORTRAN90 library which can work with characters and strings.

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 removes the carriage return character.

DEBLANK, a C++ program which reads a text file and writes a copy which has no blank lines.

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

FILE_MERGE, a FORTRAN90 program which merges two sorted files.

FILE_COLUMN_REVERSE, a FORTRAN90 program which creates a copy of a file in which the columns are reverse, that is, the characters on each line appear in reverse order.

FILE_TRANSPOSE, a FORTRAN90 program which makes a "transposed" copy of a file, in which the I-th "word" of the J-th line becomes the J-th word of the I-th line.

FILUM, a FORTRAN90 library which can work with information in text files.

REFORMAT, a FORTRAN90 program which makes a copy of a file with a given number of "words" per line.

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

TABLE_COLUMNS, a FORTRAN90 program which reads a TABLE file of N points in M dimensions and creates a new file by copying various columns, with repetition and shuffling;

TABLE_COLUMNS_PERMUTE, a FORTRAN90 program which reads a TABLE file where each line has COL_NUM values, and permutes the columns according to the user's prescription;

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:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 17 December 2009.