## `generate::Macrofort::openOutputFile` -- open FORTRAN file

#### Introduction

`Mac::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)`

#### Parameters

`b` | - | the file name: a string.

#### Returns

A positive integer specifying a file descriptor or FAIL if the file can't be opened.

#### Side Effects

Creates the ascii file to which the FORTRAN code generated by all calls to `generate::Macrofort::genFor` is written.

#### Related Functions

`generate::Macrofort::init`, `generate::Macrofort::genFor`, `generate::Macrofort::closeOutputFile`

#### Details

- `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.

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000