How can I tell when I've reached the end of the file when using the ReadBlock method in C#?

Viewed 57782

I noticed that it will keep returning the same read characters over and over, but I was wondering if there was a more elegant way.

5 Answers
Related