How to delete string from txt file?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/532217/efficient-way-to-delete-a-line-from-a-text-file">Efficient way to delete a line from a text file</a>  </p>
</blockquote>



<p>I have a multithreaded app, and a text file containing a list of proxy servers. If a proxy is not valid, I need to delete it from text file.</p>

<p>How to do it, if I don't want to lose speed of app?</p>

<p>For example I need to delete <code>62.109.29.58:8085</code>
from</p>

<pre><code>62.109.7.22:8085
62.109.0.35:8085
92.63.106.111:8085
78.24.216.163:8085
92.63.97.156:8085
82.146.56.156:8085
62.109.29.58:8085
78.24.220.173:8085
78.24.220.111:8085
92.63.106.124:8085
</code></pre>
