示例#1
0
 /// <summary>
 /// Read a CSV file into a table
 /// </summary>
 /// <param name="filename">Filename of CSV file</param>
 /// <param name="headerRow">True if the first row contains column names</param>
 /// <returns>System.Data.DataTable object that contains the CSV data</returns>
 public static DataTable ReadCSVFile(string filename, bool headerRow)
 {
     using (CSVReader reader = new CSVReader(new FileInfo(filename)))
         return(reader.CreateDataTable(headerRow));
 }
示例#2
0
 static public void getDataTable(string filePath)
 {
     dt_fullTable = CSVReader.ReadCSVFile(filePath, true);
     getMinMax_Euclidian();
 }