> Is there a command in F90 that can skip some records when reading a
> SEQUENTIAL and UNFORMATTED file?
No.
> Not able to find such a command, I have to
> settle with reading and discarding the records I want to skip. But why
there
> isn't such a command in F90 that goes directly to where the wanted record
is.
Because that's what direct-access files are for.
> Is this problem more acute when each record is very long (say, a million
> element)?
>
Possibly, but reading just one element might help:
real vector(1000000)
open(11,file='test',access='sequential',FORM='UNFORMATTED')
do i = 1, 9
read (11) vector(1) !
end do
Hope that helps,
Mike Metcalf
|