public static void WriteProxiesToTextFile(FileLink fileLink) { EmptyParamContract.Validate(fileLink); if (fileLink.Exists()) { FileHandler.Delete(fileLink); } foreach (Proxy proxy in ProxyManager.Proxies) { AppendProxyToTextFile(fileLink, proxy); } Console.WriteLine(ProxyManager.Proxies.Count + " proxies written to " + fileLink.Path); }