File Utilities

FILUM, 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.


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


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

Related Data and Programs:

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.


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.


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

Source Code:

Last revised on 07 March 2020.