there must be various ways to find string in txt file by using python, but what is the best way? ( for speed, for resources .. )
My first idea was as below.
<
You could try using a for loop this way:
for
for line in file: if inputIP in line: print(ok) break