Possible Duplicate:
Efficient way to delete a line from a text file
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.
How to do it, if I don't want to lose speed of app?
For example I need to delete 62.109.29.58:8085
from
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