diff --git a/snippets/csharp/System.IO/StreamReader/Read/strmreader read2.cs b/snippets/csharp/System.IO/StreamReader/Read/strmreader read2.cs index 8294a2c88a1..5487c1777a3 100644 --- a/snippets/csharp/System.IO/StreamReader/Read/strmreader read2.cs +++ b/snippets/csharp/System.IO/StreamReader/Read/strmreader read2.cs @@ -32,7 +32,7 @@ public static void Main() while (sr.Peek() >= 0) { c = new char[5]; - sr.Read(c, 0, c.Length); + sr.ReadBlock(c, 0, c.Length); //The output will look odd, because //only five characters are read at a time. Console.WriteLine(c);