private static List <List <string> > ReadAllRecords(DelimitedFileReader reader) { List <List <string> > results = new List <List <string> >(); List <string> record = new List <string>(); while (reader.Read(record)) { results.Add(record); record = new List <string>(); } return(results); }
public static List <List <string> > ReadAllRecords(string filePath, char delimiter, bool stripNullChars) { using (var reader = new DelimitedFileReader(filePath, delimiter, stripNullChars)) return(ReadAllRecords(reader)); }
public static List <List <string> > ReadAllRecords(string filePath) { using (var reader = new DelimitedFileReader(filePath)) return(ReadAllRecords(reader)); }