Binary Reader Buffer size
I woud like to read a very big binary file in C#. Say, 256 Mega Bytes of data. Actually I should read from one big 256Mbytes file and append to another file.
How do I append to my original file?
can i use some thing like this?
any help, suggestions is appreciated.
public static byte ReadFully (Stream stream)
byte buffer = new byte;
using (MemoryStream ms = new MemoryStream())
int read = stream.Read (buffer, 0, buffer.Length);
if (read <= 0)
ms.Write (buffer, 0, read);