Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!deejay!gear!cadlab!staff From: staff@cadlab.sublink.ORG (Alex Martelli) Newsgroups: comp.lang.fortran Subject: Re: File handling in Fortran 77 Message-ID: <271@cadlab.sublink.ORG> Date: 14 Sep 90 07:17:03 GMT References: <46016@masscomp.ccur.com> <1990Sep12.215551.16135@agate.berkeley.edu> Organization: CAD.LAB, Bologna, Italia Lines: 18 jerry@violet.berkeley.edu (Jerry Berkman) writes: ... >Even several years later, I heard of other system who opened files >at their end. ... Even TODAY, the IBM XL Fortran compiler on their new RISC-6000 workstation OPEN's the file at end. It does have an escape clause, though - if the first operation right after an OPEN is a READ, then an "implicit" rewind is performed. However, OPEN then WRITE will "append" the record, while on most other systems the first record is being over-written. Pity the standard could not be more rigid on this point, it would help portability. What does Fortran-90 say? -- Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia Email: (work:) staff@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only; any time of day or night).