The simplest and most reliable method is to simply use the following rule:
use only unit numbers between 10 and 100 (99 to be sure). While I don't
think the standard says anything about 100 being the maximum unit number, it
appears to be that way due to tradition. Unit numbers below 10 are often for
the use of the compiler itself, and unit numbers above 100 usually don't
exist. Note: all this means is you can't have more than 90 or so files open
_at the same time._
Alvaro Fernandez
|-----Original Message-----
|From: Fortran 90 List [mailto:[log in to unmask]]On Behalf
|Of Anuchit Aromsawa
|Sent: Monday, March 11, 2002 10:05 PM
|To: [log in to unmask]
|Subject: How many "unit" to connect to an external file?
|
|
|Hello all,
| The f90 compiler halts runtime error "ACCESS OF UNCONNECTED UNIT
|ATTEMPTED FILE" when the UNIT >=100. I would like to know that number of
|UNIT depends on f90 compiler / operating system or not. If not,
|why not I got
|an arbitraty number UNIT to connect to an external file? If yes,
|how cold I check
|the maximum number UNIT provided by f90 compiler / OS (without my stupid
|guess method). Please tell me for all.
|
|Any suggestion is appreciated,
|anuchit aromsawa
[log in to unmask]
|
|