(none)

russell at CCU1.AUKUNI.AC.NZ russell at CCU1.AUKUNI.AC.NZ
Tue Jul 3 14:22:02 AEST 1990


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.



More information about the Comp.sys.sgi mailing list