コード例 #1
0
        //Counts the items in the csv file.
        //Directs the program to display a message if there is a problem opening the input file.
        //Returns a value to set the array length.
        public static Int32 Processor(StreamReader wineList)
        {
            Int32 arrayLength_Int32 = 0;

            try
            {
                arrayLength_Int32 = CountLinesInFile(wineList);;
            }

            catch
            {
                UserInterface.FileErrorMessage();
            }

            return(arrayLength_Int32);
        }