I am new python. I have a list of words and a very large file. I would like to delete the lines in the file that contain a word from the list of words.
The list of words is given as sorted and can be fed during initialization time. I am trying to find the best approach to solve this problem. I'm doing a linear search right now and it is taking too much time.
Any suggestions?