[Bug libfortran/26499] gfortran - End of File incorrectly positioned after binary I/O.

dir at lanl dot gov gcc-bugzilla@gcc.gnu.org
Wed Mar 1 17:37:00 GMT 2006



------- Comment #5 from dir at lanl dot gov  2006-03-01 17:37 -------
With a sequential access file, the eof is always positioned after the location
of the last write. Thus, a file needs to be truncated to that location when it
is closed, otherwise you are saving data that is beyond the "end of file". On a
sequential tape, an eof mark seperates files and the eoi (end of information)
is usually two consecutive eof marks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26499



More information about the Gcc-bugs mailing list