Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement