// print to the console using the following format: // {file name} {datetime} {value} {median value} public static void PrintLP(string fPath) { var fileName = Path.GetFileName(fPath); List <LPDTO> lLP = CSVUtil.ReadToLP(fPath); var median = GetMedian(lLP); List <LPDTO> pList = GetToPrintLP(lLP, median); pList.ForEach(lp => Console.WriteLine(fileName + " " + lp.Date + " " + lp.DataValue + " " + median)); }