We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7342be3 commit 0116ad5Copy full SHA for 0116ad5
snippets/csharp/System.IO/StreamReader/Read/strmreader read2.cs
@@ -32,7 +32,7 @@ public static void Main()
32
while (sr.Peek() >= 0)
33
{
34
c = new char[5];
35
- sr.Read(c, 0, c.Length);
+ sr.ReadBlock(c, 0, c.Length);
36
//The output will look odd, because
37
//only five characters are read at a time.
38
Console.WriteLine(c);
0 commit comments