Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!CCU1.AUKUNI.AC.NZ!russell From: russell@CCU1.AUKUNI.AC.NZ Newsgroups: comp.sys.sgi Subject: (none) Message-ID: <9007030231.AA15380@ccu1.aukuni.ac.nz> Date: 3 Jul 90 04:22:02 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 X-Unparsable-Date: Tue, 3 Jul 90 14:31:16 NZT This is really a Fortran problem rather than anything specific to SGI, however at the moment this is the only news group I have access to. I am writing an eps graphics file from a Fortran program. One of the requirements of eps is that it has a 'Bounding Box' comment at the start of the file. (i.e. a comment that gives the size of the picture) The problem is that I don't know the size until the program has finished drawing the picture. Is there any way to rewrite a record in Fortran? I have tried REWINDing the file and then WRITEing the first 3 records but this overwrites the original file. I have also tried using FSEEK with similar results. One possibility is to use direct access but I would rather avoid that if at all possible. Thanks, Russell.