generate::Macrofort::openOutputFile
-- open FORTRAN fileMac::openOutputFile
(where
Mac:=generate::Macrofort
) allows to create the ascii file
on which resides the FORTRAN code generated by
Mac::genFor
.
generate::Macrofort::openOutputFile(b)
b |
- | the file name: a string. |
A positive integer specifying a file descriptor or FAIL if the file can't be opened.
Creates the ascii file to which the FORTRAN code generated by all
calls to generate::Macrofort::genFor
is written.
generate::Macrofort::init
,
generate::Macrofort::genFor
,
generate::Macrofort::closeOutputFile
Mac::openOutputFile
(where
Mac:=generate::Macrofort
) opens the ascii file on which
all FORTRAN code made by subsequent calls to Mac::genFor
is to be generated (see Mac::genFor
and
Mac::init
for more details). The input must be a string
with a termination like ".f"
to ensure a FORTRAN file
acceptable to most FORTRAN compilers.
Mac::openOutputFile
MUST be called before the first
call to Mac::genFor
. The help-pages of
Mac::genFor
, Mac::init
and related functions
provide examples.