Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] str = new string[count];
- {
- using (StreamReader sr = new StreamReader("База.txt"))
- {
- String line;
- int i = 0;
- while ((line = sr.ReadLine()) != null) //читаем по одной линии(строке) пока не вычитаем все из потока (пока не достигнем конца файла)
- {
- str[i++] = line;
- }
- }
- }
- spisok = new Blank[count];
- for (int i=0; i<count; i++)
- {
- string[] a = str[i].Split(';');
- spisok[0].FIO = a[0];
- spisok[0].Kurs = a[1];
- spisok[0].Mesto= a[2];
- spisok[0].Vid = a[3];
- spisok[0].Nachalo = a[4];
- spisok[0].Konec = a[5];
- spisok[0].Ruk = a[6];
- }
- StreamReader sr = new StreamReader("База.txt", System.Text.Encoding.Default)
Add Comment
Please, Sign In to add comment