Пользователь указывает путь к файлу, который затем вставляет весь читаемый контент в строку, но теперь у меня возникают проблемы с поиском в этой строке слова, введенного пользователем, и по-разному его окрашивают при наличии совпадений.
Console.WriteLine("Please enter the path of the document to be searched");
do
{
text = Helper.TryToReadFile();
} while (text == null);
Console.WriteLine("Choosen Text:\n---------------------------------------\n");
Console.WriteLine(text);
Console.WriteLine("---------------------------------------\n");
//
Console.WriteLine("Would you like to search for whole words ?");
bool decisionForWholeWords = Helper.ConvertToBool(Console.ReadLine());
Console.WriteLine("Should the spelling be observed ?");
bool decisionForSpelling = Helper.ConvertToBool(Console.ReadLine());