Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FileStream file = new FileStream("lottosz.dat", FileMode.Open);
- StreamReader be = new StreamReader(file);
- while (!be.EndOfStream)
- {
- string sor = be.ReadLine();
- string[] szamok = new string[5];
- szamok = sor.Split(' ');
- adatok.Add(new int (Convert.ToInt32(szamok[0]),
- Convert.ToInt32(szamok[1]),
- Convert.ToInt32(szamok[2]),
- Convert.ToInt32(szamok[3]),
- Convert.ToInt32(szamok[4])));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement