This question is possibly a duplicate but any answers i find don't seem to work. I have a .txt file full of this layout:

artist - song, www.link.com

artist2 - song2, www.link2.com

This is my general purpose:

```
uinput = input("input here: ")

save = open("save.txt", "w+")
ncount = save.count("\n")

for i in range(0, ncount):
    t = save.readline()
    if uinput in t:
        print("Your string " uinput, " was found in" end = "")        
        print(t)

```

My intention is: If the userinput word was found in a line then print the entire line or the link.