Home:ALL Converter>What is C# analog of C fread()?

What is C# analog of C fread()?

Ask Time:2010-07-23T21:30:32         Author:Rella

Json Formatter

What is C# analog of C fread()?

In C code here we use

fread(inbuf, 1, AUDIO_INBUF_SIZE, f);

What could be its exact analog?

Author:Rella,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/3318555/what-is-c-sharp-analog-of-c-fread
Jon Skeet :

The closest would be Stream.Read\n\nbyte[] buffer = new byte[8192];\nint bytesRead = stream.Read(buffer, 0, buffer.Length);\n",
2010-07-23T13:32:01
yy