Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!orion!ignacij From: ignacij@orion (Ignacy Misztal) Newsgroups: comp.lang.fortran Subject: writing to nonempty file Summary: In RS/6000, after opening nonempty file, old records are added Keywords: OPEN, WRITE,RS/6000 Message-ID: Date: 4 Feb 91 20:18:30 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 9 In most compilers that I use, opening and writing to an existing file results in overwriting the old contents. Not so in the IBM RS/6000, where records are appended at the end of the file. Everything is normal when one rewinds the file right after the open statement. Which is the correct semantics in view of standard Fortran 77? Ignacy Misztal University of Illinois ignacy@uiuc.edu