Hello,
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.Code:public static byte[] ReadFully (Stream stream) { byte[] buffer = new byte[268435456]; using (MemoryStream ms = new MemoryStream()) { while (true) { int read = stream.Read (buffer, 0, buffer.Length); if (read <= 0) return ms.ToArray(); ms.Write (buffer, 0, read); } } }
Thanks,



4Likes
LinkBack URL
About LinkBacks



