Python - How to search for a string in text files?
In this article, we are going to see how to search for a string in text files using Python Example: string = "GEEK FOR GEEKS"Input: "FOR" Output: Yes, FOR is present in the given string. Text File for demonstration: Finding the index of the string in the text file using readline() In this method, we