Balkezesek/Program.cs

33 lines
780 B
C#
Raw Normal View History

2023-09-07 09:04:10 +00:00
using System;
using System.Collections.Generic;
2023-09-11 09:52:14 +00:00
using System.IO;
2023-09-07 09:04:10 +00:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Balkezesek
{
2023-09-11 09:52:14 +00:00
2023-09-07 09:04:10 +00:00
class Program
{
2023-09-11 09:52:14 +00:00
List<Dobo> balkezesek = new List<Dobo>();
2023-09-07 09:04:10 +00:00
static void Main(string[] args)
{
2023-09-11 09:52:14 +00:00
Console.WriteLine("A program indul!");
Program progi = new Program();
progi.Beolvasas(@"..\..\balkezesek.csv");
2023-09-07 09:04:10 +00:00
}
2023-09-11 09:52:14 +00:00
public void Beolvasas(string filename)
{
string[] sorok = File.ReadAllLines(filename);
for (int i = 1; i < sorok.Length; i++)
{
balkezesek.Add(new Dobo(sorok[i]));
}
Console.WriteLine(balkezesek[balkezesek.Count-1].nev);
}
2023-09-07 09:04:10 +00:00
}
}