SHARE
TWEET

16

a guest Dec 8th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8.  
  9. namespace TFYA_lab16
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             string text = "";
  16.             string[] strings;
  17.             using (StreamReader sr = new StreamReader("D:\\Нужное\\ТФЯ\\lab16\\var5.txt",Encoding.UTF8))
  18.             {
  19.                 text = sr.ReadToEnd();
  20.             }
  21.             strings = Regex.Split(text, ";");
  22.             foreach(string str in strings)
  23.             {
  24.                 Console.WriteLine(str);
  25.             }
  26.         }
  27.     }
  28. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top