generate::Macrofort::openOutputFile
-- open FORTRAN file
IntroductionMac::openOutputFile (where
Mac:=generate::Macrofort) allows to create the ascii file
on which resides the FORTRAN code generated by
Mac::genFor.
Call(s)generate::Macrofort::openOutputFile(b)
Parametersb |
- | the file name: a string. |
ReturnsA positive integer specifying a file descriptor or FAIL if the file can't be opened.
Side
EffectsCreates the ascii file to which the FORTRAN code generated by all
calls to generate::Macrofort::genFor is written.
Related
Functionsgenerate::Macrofort::init,
generate::Macrofort::genFor,
generate::Macrofort::closeOutputFile
DetailsMac::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.