Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string> emails = new List<string>();
- List<string> passwords = new List<string>();
- GetAccounts.GetAccount(emails, passwords);
- static public void GetAccount(List<string> emails, List<string> passwords)
- {
- try
- {
- using (StreamReader sr = new StreamReader($@"../../../Account.txt"))
- {
- string line;
- while ((line = sr.ReadLine()) != null)
- {
- string[] words = line.Split(new char[] { ' ' });
- string email = words[1];
- string password = words[3];
- emails.Add(email);
- passwords.Add(password);
- }
- }
- }
- catch (Exception e)
- {
- Console.WriteLine("The file could not be read:");
- Console.WriteLine(e.Message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement