Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace footgolf
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamReader Bacsko = new StreamReader("fob2016.txt");
- string[] line = new string[500];
- int h = 0;
- while (!Bacsko.EndOfStream)
- {
- line[h] = Bacsko.ReadLine();
- h++;
- }
- string[] sor = new string[h];
- string[,] adatok = new string[h, 2];
- int[,] pontok = new int[h, 7];
- for (int i = 0; i < h; i++)
- {
- sor = line[i].Split(';');
- }
- for (int i = 0; i < 15; i++)
- { Console.WriteLine(sor[i]); }
- Console.WriteLine("3. feladat: Versenyzők száma: " + h);
- Console.ReadLine();
- }
- }
- }
- //.Split(';')
- /* for (int i = 0; i < h; i++)
- {
- sor = line[i].Split(';');
- adatok[i, 0] = sor[i];
- adatok[i, 1] = sor[i + 1];
- adatok[i, 2] = sor[i + 2];
- pontok[i, 0] = Convert.ToInt32(sor[i + 3]);
- pontok[i, 1] = Convert.ToInt32(sor[i + 4]);
- pontok[i, 2] = Convert.ToInt32(sor[i + 5]);
- pontok[i, 3] = Convert.ToInt32(sor[i + 6]);
- pontok[i, 4] = Convert.ToInt32(sor[i + 7]);
- pontok[i, 5] = Convert.ToInt32(sor[i + 8]);
- pontok[i, 6] = Convert.ToInt32(sor[i + 9]);
- pontok[i, 7] = Convert.ToInt32(sor[i + 10]);
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement