Exemple #1
0
        private Flight BuildFromPath(string path)
        {
            var flight = new Flight();

            // open FLT file
            var reader = File.OpenText(path);

            var line = "";

            while (line != null)
            {
                line = reader.ReadLine();
                if (line != null)
                {
                    flight.AddData(line);
                }
            }

            return(flight);
        }