system.io

.NET TextReader.Read - Detect EOF with no Peek supported

I've got a class I need to read a data from. It's derived from TextReader (particularly FilterReader from http://www.codeproject.com/KB/cs/IFilter.aspx ). ReadToEnd() hangs when reading large files. ReadLine() doesn't work at all, so the only way to read in chunks is using .Read() function. MSDN suggests using Peek() and check if it retu...