Esempio n. 1
0
        public void ProcessFileAndStore()
        {
            StreamReader reader = File.OpenText("..\\..\\resources\\fichier.his");
            string line;
            Results = new Results();
            while ((line = reader.ReadLine()) != null)
            {
                string[] items = line.Split('\t', ' ');
                if (items[0].Equals("B0500") && items[4].Equals("Inscr"))
                {

                    int numeroBus = Convert.ToInt32(items[5].Split(':')[1]);
                    string born = items[6].Split(':')[1], typeOpration = items[4], typeVehicule = "Bus et Tram";
                    Results.AddResult(born, numeroBus, typeOpration, ParseStringToDateTime(items[1], items[2]), typeVehicule);
                }

            }
        }
Esempio n. 2
0
 public ResultsManager(string filePath)
 {
     FilePath = filePath;
     Results = new Results();
 }