]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: open, action | |
7 | ||
8 | .. _files-opened-without-an-explicit-action=-specifier: | |
9 | ||
10 | Files opened without an explicit ACTION= specifier | |
11 | ************************************************** | |
12 | ||
13 | The Fortran standard says that if an ``OPEN`` statement is executed | |
14 | without an explicit ``ACTION=`` specifier, the default value is | |
15 | processor dependent. GNU Fortran behaves as follows: | |
16 | ||
17 | * Attempt to open the file with ``ACTION='READWRITE'`` | |
18 | ||
19 | * If that fails, try to open with ``ACTION='READ'`` | |
20 | ||
21 | * If that fails, try to open with ``ACTION='WRITE'`` | |
22 | ||
3ed1b4ce | 23 | * If that fails, generate an error |