예제 #1
0
        static void Main(string[] args)
        {
            //Data insert to a list
            var Phrases = new List <string>();

            Phrases.Add("Mahesh Chand");
            Phrases.Add("Praveen Kumar");
            Phrases.Add("Raj Kumar");
            Phrases.Add("Nipun Tomar");

            var Document = new SimpleText(Phrases);

            Document.SaveText(@"C:\Users\Name\WriteLines.txt");
            //--------------------------------------------------------------------------------------------------

            var Phrase = new FormattedText("My Name is Alexander");

            Phrase.SaveText(@"C:\Users\Name\myname.txt");
        }
예제 #2
0
        static void Main(string[] args)
        {
            var sen = new SimpleText();

            Console.WriteLine(sen.CountWords());
        }