Advertisement
Guest User

Untitled

a guest
May 26th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. void WczytajListy()
  2. {
  3.  
  4. int ilosclist = 0;
  5. foreach(string file in Directory.EnumerateFiles(Application.StartupPath+"/listy","*.lista"))
  6. {
  7. StreamReader sr = new StreamReader(file);
  8. int ilosc = Convert.ToInt16(sr.ReadLine());
  9. string nazwa = sr.ReadLine();
  10. int numer = Convert.ToInt32(sr.ReadLine());
  11. sr.Close();
  12. Lista list = new Lista(nazwa, numer);
  13. zbiorlist.Add(list);
  14. WczytajProdukty(list);
  15. ilosclist++;
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement