I have a txt file with the following line:
ENBO => [
 'h4d gh34245 ran54'
]
I want to be able to put the containments h4d gh34245 ran54 inside a variable in my python script.
My python script:
f = open(txt.txt, "r")
for line1 in f:
         if ("ENBO" in line1):
               print (line1)
However this just prints ENBO => [ , but I want a way to read the line below my current line ENBO => [ to get the line h4d gh34245 ran54 and store it inside of a variable in my script so I may read from it accordingly. Also, I do not want to change the txt file in anyway. And I want to search for the containments of ENBO specifically, not hard-code search for h4d gh34245 ran54