Example #1
0
        public IEnumerable <string> ReadAllLines(string filename)
        {
            var fileContents = new List <string>();

            using (var streamReader = new StreamReader(_streamService.GetStreamFromFile(filename)))
            {
                while (streamReader.Peek() >= 0)
                {
                    fileContents.Add(streamReader.ReadLine());
                }
            }

            return(fileContents);
        }