static void Main() { try { Console.WriteLine("Please specify the file to convert to HTML."); var fullFilePath = Console.ReadLine(); var fileProcessor = new FileProcessor(fullFilePath); var tagsToReplace = new Dictionary <string, (string, string)> { { "**", ("<strong>", "</strong>") }, { "*", ("<em>", "</em>") },
static void Main() { try { Console.WriteLine("Please specify the file to convert to HTML."); var fullFilePath = Console.ReadLine(); var fileProcessor = new FileProcessor(fullFilePath); var textProcessor = new TextProcessor(fileProcessor); textProcessor.ConvertText(); } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.WriteLine("Press any key to exit."); Console.ReadKey(); }
public TextProcessor(FileProcessor fileProcessor) { this.fileProcessor = fileProcessor; }