[GPF Home Page]
NAME
M_io(3f) - [M_io] Fortran I/O module (LICENSE:PD)
SYNOPSIS
      use M_io, only : slurp, swallow, notopen, print_inquire, read_table
      use M_io, only : dirname, splitpath, joinpath, get_tmp, scratch, uniq, basename
      use M_io, only : separator, getname, which, lookfor
      use M_io, only : read_line, getline
      use M_io, only : fileopen, fileclose, filedelete, filewrite
      use M_io, only : number_of_lines
      
DESCRIPTION
The M_io module is a collection of routines related to basic I/O (input/output) operations.
  • READING DATA
    • READ_LINE - read line as long as programming environment line length limit cleaning up input line
    • GETLINE - read line as long as programming environment line length limit
    • RD - ask for string from standard input with user-definable prompt
    • READ_TABLE - read a file into a numeric array
    • SLURP - read a file into a single-character array
    • SWALLOW - read a file into a character array of text lines
    • NUMBER_OF_LINES - number of lines in open sequential file
  • SEQUENTIAL FILES
  • SCRATCH FILES
    • GET_TMP - get name for system scratch directory from environment variables
    • SCRATCH - get name of scratch file
    • UNIQ - add numeric suffix to filename if needed till filename does not exist
  • SPLITTING AND JOINING PATHNAMES
    • DIRNAME - return the directory portion of a pathname
    • BASENAME - return the leaf portion of a pathname
    • SPLITPATH - split Unix pathname into directory, name, basename and extension
    • JOINPATH - join pathnames
  • SYSTEM NAMES AND ATTRIBUTES
  • SEPARATOR - try to determine pathname directory separator
  • GETNAME - a pathname to the current executable
  • WHICH - return a pathname for a command name found with the environment variable
  • LOOKFOR - return a pathname for a file basename found with the directories in the specified environment variable
  • MISCELLANEOUS
    • NOTOPEN - find unused FUN/LUN file-unit-number
    • PRINT_INQUIRE - run INQUIRE(3f) on a file by name or number and print results
AUTHOR
John S. Urban
LICENSE
Public Domain