FILUM
File Utilities


FILUM is a MATLAB library of routines for working with information in text files.

Related Data and Programs:

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

CRRM is a C++ program which reads a text file and removes the carriage return character.

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

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

FILUM is also available in a C++ version, a FORTRAN90 version, and a Mathematica version.

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

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

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

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

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

Reference:

  1. Paul Bratley, Bennett Fox, Linus Schrage,
    A Guide to Simulation,
    Springer Verlag, pages 201-202, 1983.
  2. Tom Christiansen, Nathan Torkington,
    "8.6: Picking a Random Line from a File",
    Perl Cookbook, pages 284-285,
    O'Reilly, 1999.
  3. Pierre L'Ecuyer,
    Random Number Generation,
    in Handbook of Simulation,
    edited by Jerry Banks,
    Wiley Interscience, page 95, 1998.
  4. Bennett Fox,
    Algorithm 647: Implementation and Relative Efficiency of Quasirandom Sequence Generators,
    ACM Transactions on Mathematical Software,
    Volume 12, Number 4, pages 362-376, 1986.
  5. Philip Lewis, Allen Goodman, James Miller,
    A Pseudo-Random Number Generator for the System/360,
    IBM Systems Journal,
    Volume 8, pages 136-143, 1969.

Source Code:

Examples and Tests:

MARCUS_TEST is an example that demonstrates how FILE_NAME_INC and FILE_NAME_DEC can be used to generate, save, and recover iterative data;

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


Last revised on 06 June 2007.