コード例 #1
0
        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);
        }
コード例 #2
0
 public static List <List <string> > ReadAllRecords(string filePath, char delimiter, bool stripNullChars)
 {
     using (var reader = new DelimitedFileReader(filePath, delimiter, stripNullChars))
         return(ReadAllRecords(reader));
 }
コード例 #3
0
 public static List <List <string> > ReadAllRecords(string filePath)
 {
     using (var reader = new DelimitedFileReader(filePath))
         return(ReadAllRecords(reader));
 }