I read a data from a text file using TextReader
TextReader reader = new StreamReader(stream);
string line;
while ((line = reader.ReadLine()) != null)
{
//.......
}
Sometimes I need to peek next line (or a few next lines) from reader.
How do I do that?
EDIT: Updated to allow any number of peeks: