public static bool Validate(string[] csvFileName)
        {
            string csvFilePath = FilePathCapture.Capture(csvFileName);

            if (File.Exists(csvFilePath) == false)
            {
                StandardMessages.DisplayValidationError(string.Format("CSV file!{0}The CSV File should be in the" +
                                                                      " same location with the executable file.", Environment.NewLine));
                return(false);
            }

            return(true);
        }
Example #2
0
        public static List <string> Read(string[] csvFileNameFromTerminalArguments)
        {
            var csvFilePath = FilePathCapture.Capture(csvFileNameFromTerminalArguments);

            return(File.ReadAllLines(csvFilePath).ToList());
        }