Esempio n. 1
0
        public string SetDataSource(string csvPath)
        {
            try
            {
                _inputParser.SetDataSource(csvPath);
                _weatherData = _inputParser.ParseWeatherInput();
            }
            catch (System.IO.FileNotFoundException)
            {
                return("Error, file not found. Enter a locally stored csv file.");
            }

            return("Success, weather data source changed to " + csvPath);
        }