Fortran print5/16/2023 ![]() To change any other parameters, you must close, then reopen the file. ![]() The only parameters you are allowed to change are BLANK ( NULL or ZERO) and FORM ( FORMATTED or PRINT). If you open a unit that is already open without specifying a file name (or with the previous file name), FORTRAN thinks you are reopening the file to change parameters. If the file name is not specified, a default name is created. An OPEN statement need not specify a file name. If u is first in the parameter list, then UNIT= can be omitted.įin is a character expression or * naming the file to open. U is an integer expression or an asterisk (*) that specifies the unit number. The following provides a detailed list of the OPEN specifier keywords: u ![]() The keywords can be specified in any order. The following table summarizes the OPEN specifiers: Table 4-3 OPEN Specifiers Existing files are never truncated on opening. The specifiers list slist can include one or more of the followingįILEOPT = fopt = act OPEN statement determines the type of file named, whether the connection specified is legal for the file type (for instance, DIRECT access is illegal for tape and tty devices), and allocates buffers for the connection if the file is on tape or if the subparameter FILEOPT= ' BUFFER= n' is specified. The OPEN statement can connect an existing external file to a unit, create a file and connect it to a unit, or change some specifiers of the connection.
0 Comments
Leave a Reply. |