Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 v7 ucbtopaz-1.8; site ucbtopaz.CC.Berkeley.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!ucbvax!ucbtopaz!dlw From: dlw@ucbtopaz.CC.Berkeley.ARPA (David Wasley) Newsgroups: net.lang.f77 Subject: Re: binary i/o problem Message-ID: <939@ucbtopaz.CC.Berkeley.ARPA> Date: Mon, 13-May-85 22:43:05 EDT Article-I.D.: ucbtopaz.939 Posted: Mon May 13 22:43:05 1985 Date-Received: Thu, 16-May-85 21:21:16 EDT Organization: Univ. of Calif., Berkeley CA USA Lines: 9 The example posted closed unit 5, thus releasing Unix stdin. It then opened unit 5, thus getting the default file: fort.5 Since there was no data in fort.5, it then got EOF. To redeclare unit 5 "unformatted", simply issue the 'open' statement without the preceding 'close'. You don't have to 'rewind' unit 5 if it is attached to stdin since stdin can't be positioned. David Wasley ...!ucbvax!dlw