agz@houxz.UUCP (06/30/83)
Help! This F77 program is written just as the F77 manual specifies for writing and reading in List-directed format: a=1 write(3,*)a close(3) read(3,*)b print*,b stop end Running a.out yields: list in: end of file -1 apparent state: unit 3 named fort.3 last format: list io lately reading direct formatted external IO What am I doing wrong? Counseling can't help. Abdel Zebib BTL HOx0131 ../houxz!agz
rcj@burl.UUCP (07/01/83)
I am not an f77 guru by any means, but it seems to me that anyone who closes a file and immediately (I mean IMMEDIATELY, the next statement) tries to do a read on that same file without reopening it is bound to run into difficulty. Sort of like corking a wine bottle and immediately trying to pour from it; then wondering why nothing comes out. Unless there is some auto-open feature on f77 that I don't know about, it would appear that even BTL employees put their pants on one leg at a time. :-) -- The MAD Programmer -- 919-228-3814 (Cornet 291) alias: Curtis Jackson ...![ floyd sb1 mhuxv ]!burl!rcj