SHARE
TWEET

Untitled

a guest Nov 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.RegularExpressions;
  7. using System.Threading.Tasks;
  8.  
  9. namespace U4_11_Trumpiausias_sakinys
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             const string fileName1 = @"Knyga1.txt";
  16.             const string fileName2 = @"Knyga2.txt";
  17.  
  18.             char[] punctuation = { ' ','.', ',', '!', '?', ':', ';', '(', ')', '\t' };
  19.  
  20.             List<string> words = TaskUtils.FindLongestWords(fileName1, punctuation, fileName2);
  21.  
  22.             InOut.PrintLongestWords(fileName1,words);
  23.  
  24.             List<string> sentences1 =TaskUtils.FindSentences(fileName1,punctuation);
  25.             List<string> sentences2 = TaskUtils.FindSentences(fileName2, punctuation);
  26.  
  27.             InOut.PrintShortestSentence(punctuation,sentences1);
  28.             InOut.PrintShortestSentence(punctuation, sentences2);
  29.  
  30.             TaskUtils.CombineText( fileName1, fileName2, punctuation );
  31.  
  32.         }
  33.     }
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top