Skip to content

File system and directory access #100

@jacobwilliams

Description

@jacobwilliams

I've always considered it a major defect of Fortran that it doesn't seem to know anything about directories or the file system. I think some people consider this a feature of sorts, but it's hard to imagine nowadays any complicated program that doesn't need to know about these things. So we all resort to compiler extensions (e.g. Intel's portability library is great) or hand-rolled hacks or platform-specific system calls. It would be nice if a lot of this was standardized. Just of few of the things we need:

  • does a directory exist? (I think Intel has an extension for this).
  • delete a file or directory (I know for files we can open and then close(..status='delete') but that is just so non-modern).
  • create a directory
  • list all the files in a directory
  • get/set the current working directory
  • rename a file or directory
  • ... others?

Having these standardized so they will work on all platforms and with all compilers would be a big improvement over the current situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Clause 16Standard Clause 16: Intrinsic procedures and modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions