Hello
I have a simple python code that searches a files for a string "path=c:\path" ( "c:\path" is the part that can change and returns a text after "path=". Current code sketch is:
def findPath( i_file) :
lines = open( i_file ).readlines()
for line in lines :
if line.startswith( "Path=" ) :
return # what to do here in order to get line content after "Path=" ?
What is a simple way to get a string text after "Path="? Is it some simple way exists, without closures, reflection and other esoteric things ?