Пример #1
0
        static void Main(string[] args)
        {
            IRead           newReader = new Read(@"C:\Users\ХХХ\Desktop\Text.txt");
            FuncWord <Word> funcWord  = new FuncWord <Word>();
            List <string>   lines     = new List <string>();

            lines = newReader.Reader();
            Parser parser    = new Parser();
            var    words     = parser.Parse(lines);
            var    CountWord = words.Count;

            foreach (var w in words.Values)
            {
                funcWord.Add(w);
            }
            FileSysWatcher fileSys = new FileSysWatcher(CountWord);

            fileSys.RunAsync();
            string Result   = (string.Join("\n", funcWord.Inorder()));
            Write  newWrite = new Write(@"C:\R2d2\ParserWords.txt", Result);

            newWrite.WritAsync();

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Read            newReader = new Read(@"C:\Users\ХХХ\Desktop\Text.txt");
            FuncWord <Word> funcWord  = new FuncWord <Word>();
            List <string>   lines     = new List <string>();

            lines = newReader.Reader();
            Parser parser = new Parser();

            var words = parser.Parse(lines);

            foreach (var w in words.Values)
            {
                funcWord.Add(w);
            }
            string Result   = (string.Join("\n", funcWord.Inorder()));
            Write  newWrite = new Write(@"C:\Demo\rtrtext.txt", Result);

            newWrite.Writ();


            Console.ReadKey();
        }