Advertisement
Stromeczik

Program

Oct 3rd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 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. using System.IO;
  7.  
  8. namespace ConsoleApplication1
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             var rows = File.ReadAllLines(@"E:\Users\Desktop\weather_nominal.csv").Select(l => l.Split(';').ToArray()).ToArray();
  15.             //Console.WriteLine(rows[1][3]);
  16.             //Console.ReadLine();
  17.  
  18.             Play play;
  19.             play = new Play();
  20.  
  21.             for (int i = 1; i < rows.Length; i++)
  22.             {
  23.                 play.CanPlay(rows[i][0], rows[i][1], rows[i][2], rows[i][3]);
  24.             }
  25.  
  26.             Console.ReadLine();
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement