Advertisement
dafield

Untitled

Oct 22nd, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. Ezeket kellene beolvasni ez 2 külön txt.
  2. xxoxoxoxoxoxooxxxxox
  3. xxxxxxxxxxxxxxxxooox
  4. xoxoxoxoxoxoxoxoxoxo
  5. ooxoxoxoxoxoxoxooxox
  6. xxxxxxxxxxxxxxxxoooo
  7. xxxxxxxxxxxxxxxxxxxx
  8. oooooooooooooooooooo
  9. xxxxxxxxxxooxxxxxxxx
  10. xooxxxxxxxxxoxxxxxoo
  11. xxxxxxoxxxxxxxoxxooo
  12. xooooooooxoooooooxxx
  13. ooooooxoxoxoxoxoxoxo
  14. oxxxxxxxxxxxxxxxxxoo
  15. xxxxxxxxxxxxooooooox
  16. oxxxxxxxxxxxxxoooooo
  17.  
  18. 22222111111111122222
  19. 22222111111111122222
  20. 22222111111111122222
  21. 22222111111111122222
  22. 33322211111111222333
  23. 33333222211222233333
  24. 33333222211222223333
  25. 33333222222222233333
  26. 44444333322233344444
  27. 44444333333333344444
  28. 55444443333333444455
  29. 55555544444444555555
  30. 55555544444444555555
  31. 55555544444444555555
  32. 55555555555555555555
  33.  
  34.  
  35.  
  36. using System;
  37. using System.Collections.Generic;
  38. using System.Linq;
  39. using System.Text;
  40. using System.Threading.Tasks;
  41. using System.IO;
  42.  
  43. namespace _2014okt
  44. {
  45. class Program
  46. {
  47.  
  48. static void Main(string[] args)
  49. {
  50. StreamReader sr = new StreamReader("foglaltsag.txt", Encoding.UTF8);
  51. int sor = 15, hely=20;
  52. string[,] szinhaz = new string[sor, hely];
  53. for (int i = 0; i < sor; i++)
  54. {
  55. for (int j = 0; j < hely; j++)
  56. {
  57. szinhaz[i, j]= sr.ReadLine();
  58. }
  59. }
  60. for (int i = 0; i < sor; i++)
  61. {
  62. for (int j = 0; j < hely; j++)
  63. {
  64. Console.WriteLine(szinhaz[i,j]);
  65. }
  66. }
  67.  
  68.  
  69. Console.ReadKey();
  70. }
  71.  
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement