Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Collections.Generic;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] lines = System.IO.File.ReadAllLines(@"C:\Users\local\source\repos\ConsoleApp1\ConsoleApp1\probki.txt");
- List<String []> Matrix = new List<String []>();
- for (int i = 0; i < lines.Length; i++)
- {
- string [] element;
- element = lines[i].Split(' ');
- Matrix.Add(element);
- }
- foreach (var item in Matrix)
- {
- Console.WriteLine(string.Join(' ',item));
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement