That was quick and succinct. Thanks (:#
I imagine loads of people must have wanted/attempted to do what I did. I
don't want to use formatted io, and I was hoping not to have to use
direct access because I know little about it and because my records are
a lot more complicated that a single integer and I realized it would
probably involve a lot of counting/bookwork on my part. Would that be
the simplest way to achieve what I was trying though?
Thanks,
Paul
Lionel, Steve wrote:
> Paul Suckling wrote:
>
>
>>Does this mean that an end of file marker is placed at the end of
>
> whatever is the last write statement, effectively
>
>>making what I was trying to do with a sequential file impossible?
>
>
> Yes.
>
> "For sequential access on output, if there is a current record, the file
> position is not changed and the current record becomes the last record
> of the file. Otherwise, a new record is created as the next record of
> the file; this new record becomes the last and current record of the
> file and the file is positioned at the beginning of this record."
>
> [Fortran 95, 9.2.1.3.2, File position prior to data transfer, p136-137]
>
> Steve Lionel
> Software Products Development
> Intel Corporation
> Nashua, NH
--
===============================================
Dr Paul Suckling
School of Mathematics and Statistics
The University of Birmingham
Edgbaston, Birmingham, B152TT, U.K.
http://web.mat.bham.ac.uk/P.M.Suckling/
===============================================
|