Skip to content

How to read blocks of data from a file

Ze Jibe

Asked Dec 20, 2006, 6:51 AM EST1 answer
Share
LinkedInX
Hi, I would like to know how to perform, in C#, a function that is similar to C/C++ fread() (reading data from a file in one block to a memory buffer). This one is much faster than the usual fscanf() function. I know FileStream.Read() allows to read byte arrays. But how do we then read something else like double or int arrays? Thanks in adavance for your help, M&Ms

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    You can get help from MSDN, just search the keyword "File Method", you can find what you want.

    0