I`m making a program that reads a document and after that it searches for specifics words and return the lines that has this words

I tried this sample but all it returns is an `"Process finished with exit code 0"`.

```
def main():

    f = open("xhtml.log", "r")

    line = f.readline()
    x= "Desktop"
    while line:

        #print(line)
        line = f.readline()
        print(line)
        if line == x:
            print(line)

    f.close()

```

in this log I have a lot of lines with desktop written on and I need it to be printedm, how do I do that?