Jun-03-2020, 06:40 PM
I was thinking to use a "break" if the first 'Run Time" line found.
Then reload the file again and process it to the end of the file.
something like this:
Then reload the file again and process it to the end of the file.
something like this:
with open(currentF) as mfiler: for ln in mfiler: if runtime_l in ln : ln=ln.rstrip() print ("Run Time line FOUND__>", ln) ftoiter = currentF break with open(ftoiter) as mfile: for lns in mfile: if runtime_l in lns : print ("RUN TIME line++++++++++++++ >", lns) print (lns)