Mam prosty kod w Pythonie, który wyszukuje w plikach ciąg np. path=c:\pathGdzie c:\pathczęść może się różnić. Obecny kod to:
def find_path(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=" ?
Jaki jest prosty sposób na uzyskanie tekstu Path=?