I\'m trying to write ips which are the response from an api call into a .txt file. So far my code works fine, however I don\'t want ips that are already in the .txt file to be r