home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5159 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!lancer.afit.af.mil!cwillits
  3. From: cwillits@afit.af.mil
  4. Subject: Re: Maximum number of openfiles on MS FORTRAN 5.1?
  5. Message-ID: <1993Jan24.174628.1@afit.af.mil>
  6. Lines: 27
  7. Sender: news@afit.af.mil
  8. Nntp-Posting-Host: csc.afit.af.mil
  9. Organization: Air Force Institute of Technology
  10. References: <Jan.22.09.43.13.1993.26857@gandalf.rutgers.edu>
  11. Date: Sun, 24 Jan 1993 12:46:28 GMT
  12.  
  13. In article <Jan.22.09.43.13.1993.26857@gandalf.rutgers.edu>, 
  14. hempatel@gandalf.rutgers.edu (Hemanshu Patel) writes:
  15. >     I am using MS Fortan 5.1 on a PC running DOS, and I've written 
  16. >     a program on a SPARC 1 which opens 20 or so files. It compiles
  17. >     and runs fine.  I then transfered it to a PC, it compiles fine
  18. >     but I  get a runtime  error of  too many files opened. I don't 
  19. >     remember the  exact error code. Does  anyone know  the maximum 
  20. >     number of files openable at one time under MS Fortran 5.1, and
  21. >     any tricks around. I really don't want to  open and close each 
  22. >     file every time,  especially since the data  stored in them is 
  23. >     sequentially  written. Any help  would be appreciated. Than...
  24. >     Hemanshu
  25.  
  26. According to Appendix C of the _Microsoft FORTRAN Reference_, a program written
  27. in MS FORTRAN 5.1 and run under DOS or OS/2 cannot open more than 20 files at a
  28. time.  (Under certain situations involving OS/2, this can be extended to 40.)
  29.  
  30. Another poster referred to changing the "FILES=" line in CONFIG.SYS.  Setting
  31. this limit to more than 20 has no effect on the MS FORTRAN limit of 20 open
  32. files.
  33.  
  34. Craig J. Willits
  35. Graduate Student, Operations Research
  36. Air Force Institute of Technology
  37. cwillits@afit.af.mil
  38.