Advertisement
MrRamiz

Untitled

Jan 20th, 2020
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.60 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3.  
  4. namespace footgolf
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             StreamReader Bacsko = new StreamReader("fob2016.txt");
  11.             string[] line = new string[500];
  12.             int h = 0;
  13.             while (!Bacsko.EndOfStream)
  14.             {
  15.                 line[h] = Bacsko.ReadLine();
  16.                 h++;
  17.             }
  18.             string[] sor = new string[h];
  19.             string[,] adatok = new string[h, 2];
  20.             int[,] pontok = new int[h, 7];
  21.            for (int i = 0; i < h; i++)
  22.             {
  23.                 sor = line[i].Split(';');
  24.            
  25.  
  26.             }
  27.  
  28.             for (int i = 0; i < 15; i++)
  29.             { Console.WriteLine(sor[i]); }
  30.             Console.WriteLine("3. feladat: Versenyzล‘k szรกma: " + h);
  31.  
  32.             Console.ReadLine();
  33.         }
  34.     }
  35. }
  36. //.Split(';')
  37. /* for (int i = 0; i < h; i++)
  38.             {
  39.                 sor = line[i].Split(';');
  40.                 adatok[i, 0] = sor[i];
  41.                 adatok[i, 1] = sor[i + 1];
  42.                 adatok[i, 2] = sor[i + 2];
  43.                 pontok[i, 0] = Convert.ToInt32(sor[i + 3]);
  44.                 pontok[i, 1] = Convert.ToInt32(sor[i + 4]);
  45.                 pontok[i, 2] = Convert.ToInt32(sor[i + 5]);
  46.                 pontok[i, 3] = Convert.ToInt32(sor[i + 6]);
  47.                 pontok[i, 4] = Convert.ToInt32(sor[i + 7]);
  48.                 pontok[i, 5] = Convert.ToInt32(sor[i + 8]);
  49.                 pontok[i, 6] = Convert.ToInt32(sor[i + 9]);
  50.                 pontok[i, 7] = Convert.ToInt32(sor[i + 10]);
  51.  
  52.             }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement