/// <summary> /// Method to read the record state census csv file and check the file type,file path, delimeter and header . /// </summary> /// <param name="stateCensusFilePath"></param> /// <param name="delimeter"></param> /// <param name="header"></param> /// <returns></returns> public static object CsvStateCensusReadRecord(string stateCensusFilePath, char delimeter, string[] header) { CensusAnalyser stateCensusPathObject = new CensusAnalyser(stateCensusFilePath); object returnObject = stateCensusPathObject.ReadRecordCsvFile(stateCensusFilePath, delimeter, header); return(returnObject); }
static void Main(string[] args) { CensusAnalyser CensusAnalyse = new CensusAnalyser(); CensusAnalyse.ReadRecordCsvFile(filePath1, in_delimeter1, in_header1); CensusAnalyse.CountRecordsUSingMap(record); SortingJsonBasedOnKey(jsonFilePath1, key1); RetriveFirstDataOnKey(jsonPath1, key1); RetriveLastDataOnKey(jsonPath1, key1); }