Example #1
0
 static void ReadTxt(string file)
 {
     try
     {
         foreach (var line in Dycrept.TxtDycrept(File.ReadLines(file).Reverse()))
         {
             Console.WriteLine(line);
         }
     }
     catch (FileNotFoundException notFount)
     {
         Console.WriteLine(notFount.Message);
     }
 }
Example #2
0
        static void ReadXml(string file)
        {
            var xml = XDocument.Load(file);

            var query = from c in xml.Root.Descendants("userstory")
                        select c.Element("content").Value;


            foreach (string name in Dycrept.TxtDycrept(query))
            {
                Console.WriteLine("[XML] Content of the user story is : {0}", name);
            }

            Console.ReadKey();
        }