Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
62
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.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace DataGridAPI
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var list = new FileReader();
  14. List<List<string>> content;
  15. content = list.ReadFile();
  16.  
  17.  
  18. int listLenght = content[0].Count;
  19. int insideListLenght = content.Count;
  20.  
  21.  
  22.  
  23.  
  24. for (int i = 0; i < listLenght; i++)
  25. {
  26. for (int j = 0; j < insideListLenght; j++)
  27. {
  28. Console.Write("{0,35}", content[j][i]);
  29. }
  30. Console.WriteLine();
  31. }
  32.  
  33.  
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement