Maximum Number of Simultaneous Open Files

Last reviewed: July 17, 1995
Article ID: Q12086
The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 3.2, 3.3, 3.31, 4.0, 4.01, 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, 5.10

SUMMARY

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.

MORE INFORMATION

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.


Additional reference words: 3.20 3.30 3.31 4.00 4.01 4.10 5.00 5.10 appnote
KBCategory: kbprg kbappnote
KBSubcategory: FORTLngIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.