private void UserDictInitialize() { if (!File.Exists(StaticVars.UserDictCSV)) { return; } var reader = new StreamReader(File.OpenRead(StaticVars.UserDictCSV), Encoding.UTF8, true); try { while (!reader.EndOfStream) { var line = reader.ReadLine(); var values = line.Split(','); if (!String.IsNullOrEmpty(values[0]) && !String.IsNullOrEmpty(values[1])) { if (!UserDict.ContainsKey(values[0].ToLower())) { UserDict.Add(values[0].ToLower(), values[1]); } } } } catch { } reader.Close(); }