   [.net] C# and marshaling
  First off, I have a pretty good understanding of C# and marshaling of unmanaged memory. I was wondering if anyone had any links to tutorials, documentation, or can tell me how to solve these problems:1) I want to load a file into basically an unsigned char array (basically load the raw file data as an array of bytes).2) How to save an array of unsigned char to files.I'm sure this is simple so if anyone knows of any examples or tutorials please let me know.   
  Assuming by unsigned char's you mean the C++ datatype (byte in C#) then why not just use FileStream.Read and FileStream.Write?   ;  This might help a bit : C# and advanced binary files.   