Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!mcvax!unido!ztivax!david From: david@ztivax.UUCP Newsgroups: net.lang.f77 Subject: Re: Unit number limit? Message-ID: <8300001@ztivax.UUCP> Date: Mon, 16-Jun-86 05:46:00 EDT Article-I.D.: ztivax.8300001 Posted: Mon Jun 16 05:46:00 1986 Date-Received: Wed, 18-Jun-86 04:47:23 EDT References: <105@tekgen.UUCP> Sender: notes@unido.UUCP Lines: 16 Nf-ID: #R:tekgen:-10500:ztivax:8300001:000:538 Nf-From: ztivax!david Jun 16 10:46:00 1986 >stever@tekgen >Does anyone know a way to get around the limit of 20 >unit numbers in UNIX 4.2 FORTRAN? > >I understand that C allows 31 or so. Nope, that is a function of the file descriptors you can have open in UNIX 4.2: 0-19 (maybe 1-20 in f77, i dunno). (flame me not - this is NOT some magic UNIX standard limit, , but it IS a common implementation limit, and its for all the UNIXes I have seen). If you want lots of files open, use FILE pointers (is there a way to get them from f77? in C we use fopen() instead of open() ).