public static ExcelSheet CreateFromTsv(string path, ExcelSheetReadConfig config) { var rows = TsvReader.Read(path); var sheet = CreateSheet(rows, config); sheet.Name = "tsv"; return(sheet); }
internal static IEnumerable <ExcelRow> Read(string path) { var ext = Path.GetExtension(path); if (ext == ".csv") { return(CsvReader.Read(path)); } else if (ext == ".tsv") { return(TsvReader.Read(path)); } else { return(new List <ExcelRow>()); } }
public static ExcelSheet CreateFromTsv(string path, ExcelSheetReadConfig config) { var rows = TsvReader.Read(path); return(CreateSheet(rows, config)); }