C# List or TextReader limit? -
I am trying to make a dictionary, and I have a text file with almost 100,000 words on my line. Here is the code:
word = new list & lt; Word & gt; (); Console.light line ("please wait, compile list of words ..."); TextReader tr = new streamrider (DICT); String line = tr.ReadLine (); While (line! = "" & Line! = Null) {words.Add (new word (line)); Line = tr.ReadLine (); } Console.WriteLine ("compiled with the word" list. "Word" "word");
However, it stops at 40510 words, why is it so? And how can I cancel this issue?
Thank you.
Edit: Sorry; I examined empty rows in Notepad and found no one;
Thank you, my bad, anyway.
Comments
Post a Comment