Casus: a file is being read Relevant portions of the text, in the read file, begin and end with an * There are many such relevant portions
The keys are searched for by dataitem 'seek'. The keys are in one the first lines directly below the *'s, and nowhere else.
My question is: could this code be improved?
Patrick.
10 do while string(1:1).NE.'*') read(1,'(a)',iostat=stat)string end do read(1,'(a)',iostat=stat)string
if (index(string,seek(1:3)).NE.1)goto 10
do while (string(1:1).NE.'*')
read(1,\'(a)\',iostat=stat)string
print_*, string !the program uses a subroutine to print
end do