mardi 30 juin 2015

Python find word behind key word in a txt file

tree = open("start.txt")

for line in tree:
    if"bodies name",line):

i have to append the word behind the key word bodies name. the txt file looks like: bodies name="Testname"

so i should append after bodies name=" until the next ">

is that possible

Thanks for help !!

Aucun commentaire:

Enregistrer un commentaire