I have some FORTRAN that writes to a file, where the file path / name is specified by the user. I want to check that the user has entered:
a) a valid path / file name.
b) that the file is accessible (not read-only) if it exists.
The code should overwrite existing files and create the file if it doesn't exist.
Is there an easy way to do this, or do I have to INQUIRE on EXIST and WRITE and then variously combine the results?