SHARE
TWEET

Untitled

a guest Oct 14th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.IO;
  3. using System.Collections.Generic;
  4. namespace ConsoleApp1
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             string[] lines = System.IO.File.ReadAllLines(@"C:\Users\local\source\repos\ConsoleApp1\ConsoleApp1\probki.txt");
  11.             List<String []> Matrix = new List<String []>();
  12.      
  13.             for (int i = 0; i < lines.Length; i++)
  14.             {
  15.                 string [] element;
  16.                 element = lines[i].Split(' ');
  17.                 Matrix.Add(element);
  18.             }
  19.             foreach (var item in Matrix)
  20.             {
  21.                 Console.WriteLine(string.Join(' ',item));
  22.             }
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
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