public void getProxyFormFile() { try { if (!File.Exists(proxyFilePath)) { File.Create(proxyFilePath).Close(); } Proxy.AddRange(File.ReadAllLines(proxyFilePath).ToList()); } catch (IOException e) { Log2Txt.logError(Log2Txt.GetMethodInfo() + e.Message); } }