Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Text.RegularExpressions;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TFYA_lab16
- {
- class Program
- {
- static void Main(string[] args)
- {
- string text = "";
- string[] strings;
- using (StreamReader sr = new StreamReader("D:\\Нужное\\ТФЯ\\lab16\\var5.txt",Encoding.UTF8))
- {
- text = sr.ReadToEnd();
- }
- strings = Regex.Split(text, ";");
- foreach(string str in strings)
- {
- Console.WriteLine(str);
- }
- }
- }
- }
RAW Paste Data