public static List <List <long> > GetStreamAsListOfDelimitedLongInts(StreamReader reader, char[] delimiter, int fromBase = 10) { var listToReturn = new List <List <long> >(); string line; while ((line = reader.ReadLine()) != null) { listToReturn.Add(StringParsers.SplitDelimitedStringIntoLongIntList(line, delimiter, fromBase)); } return(listToReturn); }
public static List <List <string> > GetStreamAsListOfDelimitedStrings(StreamReader reader, char[] delimiter) { var listToReturn = new List <List <string> >(); string line; while ((line = reader.ReadLine()) != null) { listToReturn.Add(StringParsers.SplitDelimitedStringIntoStringList(line, delimiter)); } return(listToReturn); }