public static void GetEmailFromFile() { var xx = new StreamReader("email.txt"); string input = xx.ReadLine(); email = input; xx.Close(); OperationsWithFile.DeleteFirstLineFromFile("email.txt"); }
public static void GetPassFromFile() { var xx = new StreamReader("pass.txt"); string input = xx.ReadLine(); pass = input; xx.Close(); OperationsWithFile.DeleteFirstLineFromFile("pass.txt"); }
public static void ParsingProxy() { var xx = new StreamReader("proxy.txt"); string input = xx.ReadLine(); string pattern = @"(.*):(.*)@(.*):(.*)"; Regex regex = new Regex(pattern); Match match = regex.Match(input); fullProxy = match.Groups[0].Value; proxyLogin = match.Groups[1].Value; proxyPass = match.Groups[2].Value; proxy = match.Groups[3].Value; port = match.Groups[4].Value; xx.Close(); OperationsWithFile.DeleteFirstLineFromFile("proxy.txt"); xx.Close(); }