Advertisement
Guest User

Untitled

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