Test if string exists in file with Python
<p>I'd like to add only servers currently doesn't exist at file</p>

<p>My current code :</p>

<pre><code> f = open(filename,'a')
 for server in cmo.getServers() :
    print &gt;&gt;f, server.getListenAddress()
</code></pre>

<p>Thanks in advance</p>
