balkezesek/Balkezesek/Program.cs

33 lines
795 B
C#
Raw Normal View History

2023-09-07 09:04:25 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
2023-09-11 09:52:08 +00:00
2023-09-07 09:04:25 +00:00
namespace Balkezesek
{
2023-09-11 09:52:08 +00:00
2023-09-07 09:04:25 +00:00
class Program
{
2023-09-11 09:52:08 +00:00
List<Dobo> balkezesek = new List<Dobo>();
2023-09-07 09:04:25 +00:00
static void Main(string[] args)
{
2023-09-07 09:07:22 +00:00
Console.WriteLine("the program is induling!");
2023-09-11 09:52:08 +00:00
Program progi = new Program();
progi.Beolvasas(@"..\..\balkezesek.csv");
}
public void Beolvasas(string faljnev)
{
string[] sorok = File.ReadAllLines(faljnev);
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:25 +00:00
}
}
}