Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ezeket kellene beolvasni ez 2 külön txt.
- xxoxoxoxoxoxooxxxxox
- xxxxxxxxxxxxxxxxooox
- xoxoxoxoxoxoxoxoxoxo
- ooxoxoxoxoxoxoxooxox
- xxxxxxxxxxxxxxxxoooo
- xxxxxxxxxxxxxxxxxxxx
- oooooooooooooooooooo
- xxxxxxxxxxooxxxxxxxx
- xooxxxxxxxxxoxxxxxoo
- xxxxxxoxxxxxxxoxxooo
- xooooooooxoooooooxxx
- ooooooxoxoxoxoxoxoxo
- oxxxxxxxxxxxxxxxxxoo
- xxxxxxxxxxxxooooooox
- oxxxxxxxxxxxxxoooooo
- 22222111111111122222
- 22222111111111122222
- 22222111111111122222
- 22222111111111122222
- 33322211111111222333
- 33333222211222233333
- 33333222211222223333
- 33333222222222233333
- 44444333322233344444
- 44444333333333344444
- 55444443333333444455
- 55555544444444555555
- 55555544444444555555
- 55555544444444555555
- 55555555555555555555
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace _2014okt
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamReader sr = new StreamReader("foglaltsag.txt", Encoding.UTF8);
- int sor = 15, hely=20;
- string[,] szinhaz = new string[sor, hely];
- for (int i = 0; i < sor; i++)
- {
- for (int j = 0; j < hely; j++)
- {
- szinhaz[i, j]= sr.ReadLine();
- }
- }
- for (int i = 0; i < sor; i++)
- {
- for (int j = 0; j < hely; j++)
- {
- Console.WriteLine(szinhaz[i,j]);
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement