Maximum Number of Simultaneous Open Files

Article translations Article translations
Article ID: 12086 - View products that this article applies to.
This article was previously published under Q12086
Expand all | Collapse all


In versions of Microsoft FORTRAN prior to version 5.0, the maximum number of files that an application can have open is 15. By default, fifteen is also the maximum number of files available to an application in Microsoft FORTRAN versions 5.0 and 5.1. However, you can increase the number of available file handles by following the procedure set forth in application note HF0304.

In the United States, application notes can be obtained by calling Microsoft Product Support Services at (206) 454-2030. Outside the United States, contact the Microsoft subsidiary or distributor that serves your country.

An application can open and close an unlimited number of files while the application runs. The limit applies only to the number of files open simultaneously.


The maximum number of simultaneously open files is affected by the FILES variable in the CONFIG.SYS file. Set the FILES variable to at least 20. A FORTRAN application automatically owns five files: standard input, standard output, standard printer, standard error, and standard auxiliary.

For more information on factors that influence the limit of simultaneously open files, see your operating system documentation. In MS-DOS, see the documentation for the FCBS command and for file handles.


Article ID: 12086 - Last Review: December 1, 2003 - Revision: 2.0
  • Microsoft FORTRAN Compiler 3.2
  • Microsoft FORTRAN Compiler 3.31
  • Microsoft FORTRAN Compiler 4.0
  • Microsoft FORTRAN Compiler 4.01
  • Microsoft FORTRAN Compiler 4.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • Microsoft FORTRAN Compiler 4.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from