Hi, I'm trying to make a dictionary game, and I have a text file with about 100,000 words each on their own line. I have this code:
words = new List<Word>();
Console.WriteLine("Please wait, compiling words list...");
TextReader tr = new StreamReader(DICT);
string line = tr.ReadLine();
while (line != "" && line != null) {
words.Add(new Word(line));
line = tr.ReadLine();
}
Console.WriteLine("List compiled with " + words.Count + " words.");
However, it stops at 40510 words. Why is this? And how can I absolve the issue?
Thank you.