Scanning a file line by line to find an IP seems to be sick if you have 9000 non-share checks before you go to 232.0.17.1
Is your file limited to one file? for example, let's say this list is prohibited by IP addresses, and you just want to see if it is on the list.
What to do if you made a DIR to contain multiple files:
BannedIPs +- 0.ips +- 1.ips +- 37.ips +- 123.ips +- 253.ips +- 254.ips
Each file contains only IP addresses starting with this number.
If you are lucky enough to even have distribution ... you will have 256 files, but each will have only 37 entries.
Thus, if you want to test: 232.0.17.1 , you look in the 232.ips file and scan it.
source share