I have a StreamReader and I want to read the next n Bytes and return them as a string.
There is only a ReadLine() method returning a string, but my file has no linebreaks (CR/LF). Read() returns int instead and ReadBlock() fills a char[].
Is there a simple way to do it? Shall I use Encoding.GetString()? Then I would need to read into a byte[].
I see an issue with Encodings and characters with more than 1 Bytes, so to be exact, I want to read n bytes and the Encoding has to be taken into account.