Jul-14-2018, 05:14 PM
The code you gave won't run, but assuming you dedent the for loop and give it a colon, you are looping over the wrong thing. You are looping over myfile_contents, which is just the original, unparsed file. You want to loop over ip, which is where you stored all of the ip addresses.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures