...real, allocatable :: array(:)
real, allocatable :: charge(:)
integer, parameter:: iunit=20
open(iunit,file='STATIS',status='old')
read(iunit,*)
read(iunit,*)
i=0
k=0
do
read(iunit,*,end=10) &
stepno,steptime,arrsize
allocate(array(arrsize))
read(iunit,*, end=10) array
datum...