Basically, no. If you write to a sequential file, the record you write
is the last record of the file. See [176:14-17]. See also [172:8-19]
about automatic writing of an endfile record when the file is closed.
Cheers,
Bill
Aleksandar Donev wrote:
>Hi,
>Is it possible to do the following in Fortran for a sequential file:
>Write some lines in the file, and then REWIND and replace the initial
>line with the same number of characters, while keeping the rest of the
>file intact (as opposed to simply wiping it out)?
>Thanks,
>Aleks
>
>
>
--
Bill Long [log in to unmask]
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
|