In python I would like to find a way to compare two text files and read one line by line and find it's match if any in the other file. If they match I would like to take that string and write it to a new file.
I do not know how I would even start this the only thing I know how to do is how to read a text file but not compare it to another.
Any starting tips, links, or ideas would be great.
Thank you