I am processing a file line by line
for line in mix_files[i]:
if my_string in line:
use the next line # How to get the next line
After a line containing the text is found, I need to work with the next line. Is there any easy way how to get the next line (e.g., increment an iterator), instead of the less confortable method:
get line number -> increment line number -> use the next line
Thanks for your help.