Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }