Пример #1
0
        static void Main(string[] args)
        {
            // Make sure that the output directory exists.
            if (!Directory.Exists(outputDirectory))
                Directory.CreateDirectory(outputDirectory);

            string fileContent = File.ReadAllText(inputFile);

            string[] lines = fileContent.SplitString(Environment.NewLine);

            Parser parser = new Parser();
            foreach (string line in lines)
            {
                parser.ParseLine(line);
            }

            HTMLGenerator generator = new HTMLGenerator();
            generator.Generate(parser, outputDirectory);
        }
Пример #2
0
        static void Main(string[] args)
        {
            // Make sure that the output directory exists.
            if (!Directory.Exists(outputDirectory))
            {
                Directory.CreateDirectory(outputDirectory);
            }

            string fileContent = File.ReadAllText(inputFile);

            string[] lines = fileContent.SplitString(Environment.NewLine);

            Parser parser = new Parser();

            foreach (string line in lines)
            {
                parser.ParseLine(line);
            }

            HTMLGenerator generator = new HTMLGenerator();

            generator.Generate(parser, outputDirectory);
        }