filum


filum, a C code which handles information in text files.

Licensing:

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

Languages:

filum is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

filum_test

c_files, a C code which illustrates the use of files.

cr2lf, a C++ code which reads a text file and replaces carriage returns by line feeds.

crrm, a C++ code which reads a text file and removes the carriage return character.

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

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

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

reformat, a Fortran90 code which makes a copy of a file with a given number of "words" per 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.

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:


Last revised on 28 June 2019.