[GPF Home Page]
NAME
M_io(3f) - [M_io] Fortran I/O module (LICENSE:MIT)
SYNOPSIS
      use M_io, only : slurp, swallow, notopen, print_inquire, uniq, read_table
      use M_io, only : dirname, splitpath, get_tmp, scratch
      use M_io, only : read_line, read_all
      
DESCRIPTION
The M_io module is a collection of routines related to basic I/O (input/output) operations.
  • NOTOPEN - find unused FUN/LUN file-unit-number
  • PRINT_INQUIRE - run INQUIRE(3f) on a file by name or number and print results
  • SPLITTING PATHNAMES
    • DIRNAME - return the directory portion of a pathname
    • SPLITPATH - split Unix pathname into directory, name, basename and extension
  • READING DATA
    • READ_LINE - read line as long as programming environment line length limit cleaning up input line
    • READ_ALL - 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
  • 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
AUTHOR
John S. Urban
LICENSE
MIT License