Loading a big .txt file.

Hello everyone,

I am waiting 50 minutes right now for loading in a 2 million email list.

I need to make an email sortener.

Can anyone help me with the process to load in the combo’s faster?

if (!Directory.Exists("./Combos") || Directory.GetFiles("./Combos").Length <= 0) { WriteLine("Please add some combos to combos directory!"); Directory.CreateDirectory("./Combos"); Console.ReadLine(); Environment.Exit(0); } foreach (var file in Directory.GetFiles("./Combos", "*.txt")) { foreach (string line in File.ReadAllLines(file)) { if (line.Contains(':') && !combos.Contains(line)) combos.Enqueue(line); //combos.Add(line); } } 

submitted by /u/plakt0ets
[link] [comments]

Leave a Reply