I have a System.IO.Stream
that I'm getting content from (a file). I do the following:
using (var reader = new StreamReader(mystream))
{
var filecontent = reader.ReadLine();
}
That only captures a single line. I'd like to put each line into a List<String>
. How can that be done?