The example below reads frames from a fictitious molecular dynamics trajectory of two files until the last frame is reached:
read trajectory asci=true input=pti_00_50.crd input=pti_50_100.crd begin=1000 skip=1000 stop=100000 end while ($status # "COMPLETE") loop traj read trajectory next end end loop traj