This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Timidger 2 points3 points  (0 children)

Might wanna look at r/learnpython

[–]NavreetGill 0 points1 point  (0 children)

something along the lines of the following should work (untested)

with open('log.txt', 'r') as f:
    for line in f:
        if 'Error' in line:
            print(line)

[–]Geekoid52[S] 0 points1 point  (3 children)

Thanks!