FILUM
File Utilities


FILUM is a C++ library which handles information in text files.

The original version of this library used the C representation of strings as pointers to characters. The library is being updated to use the C++ string data type.

Licensing:

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

Languages:

FILUM is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a Mathematica version and a MATLAB version and a Python version.

Related Data and Programs:

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 "#").

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

FILE_NAME_SEQUENCE, a C++ program which demonstrates ways to generate a sequence of filenames that can be used when generating images for an animation.

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.

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.

Reference:

  1. Tom Christiansen, Nathan Torkington,
    "8.6: Picking a Random Line from a File",
    Perl Cookbook, pages 284-285,
    O'Reilly, 1999.

Source Code:

Examples and Tests:

Files used for some of the tests include:

DATA_***.TXT is a short sequence of three files, each having 8 data items, 3 on the first line, 3 on the second, and 2 on the third line, to be examined by FILE_SEQUENCE_SIZE.

List of Routines:

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


Last revised on 22 November 2011.