/// ******************************************************************************** /// <summary> /// Reads file that contains all of the paths To users spelling List file. /// </summary> /// <returns>True if file read is successful.</returns> /// <created>art2m,5/23/2019</created> /// <changed>art2m,5/23/2019</changed> /// ******************************************************************************** public static bool ReadUsersSpellingListPathsFile(string filePath) { var usp = new UserSpellingFilePathsCollection(); if (!File.Exists(filePath)) { return(false); } using (var reader = new StreamReader(filePath)) { string user; while ((user = reader.ReadLine()) != null) { Usp.AddItem(user.Trim()); } } return(true); return(true); }