Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Skaityti(string fv, Keliai[] k, out int n)
- {
- string pavad;
- double ilgi;
- int greiti;
- n=0;
- using (StreamReader reader = new StreamReader(CFd, Encoding.GetEncoding(1257)))
- {
- string line;
- while ((line = reader.ReadLine()) != null)
- {
- string[] parts;
- line = reader.ReadLine();
- parts = line.Split(';');
- pavad = parts[0];
- ilgi = double.Parse(parts[1]);
- greiti = int.Parse(parts[2]);
- k[i] = new Keliai(pavad, ilgi, greiti);
- n++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement