This article was previously published under Q12086
This article has been archived. It is offered "as is" and will no longer be updated.
In versions of Microsoft FORTRAN prior to version 5.0, the maximumnumber of files that an application can have open is 15. By default,fifteen is also the maximum number of files available to anapplication in Microsoft FORTRAN versions 5.0 and 5.1. However, youcan increase the number of available file handles by following theprocedure set forth in application note HF0304.
In the United States, application notes can be obtained by callingMicrosoft Product Support Services at (206) 454-2030. Outside theUnited States, contact the Microsoft subsidiary or distributor thatserves your country.
An application can open and close an unlimited number of files whilethe application runs. The limit applies only to the number of filesopen simultaneously.
The maximum number of simultaneously open files is affected by theFILES variable in the CONFIG.SYS file. Set the FILES variable to atleast 20. A FORTRAN application automatically owns five files:standard input, standard output, standard printer, standard error, andstandard auxiliary.
For more information on factors that influence the limit ofsimultaneously open files, see your operating system documentation. InMS-DOS, see the documentation for the FCBS command and for filehandles.