Загрузка данных


using System;
using System.IO;

class HtmlValidator
{
    public static bool IsHtml(string text)
    {
        return text.Contains("<html>") &&
               text.Contains("<form>") &&
               text.Contains("<h1>");
    }

    static void Main()
    {
        string text = File.ReadAllText("input.txt");

        bool result = IsHtml(text);

        Console.WriteLine(result ? "Это HTML-код" : "Не HTML-код");
    }
}